Regular Expressions and/or "if/then/else" logic in

Discuss WordPipe, ExcelPipe and PowerPointPipe. Get help with installation and running, notify us of bugs, request new features and enhancements.

Moderators: DataMystic Support, Moderators

Dan in MN

Regular Expressions and/or "if/then/else" logic in

Postby Dan in MN » Fri Apr 15, 2005 5:29 am


Is there a way to use if/then/else logic and regular expressions for doing find/replace in WordPipePro?

Here's an example of what I'm trying to do:

I need to replace the URLs in some hyperlinks. Currently, they look like this:

HYPERLINK "/main/groups/agencywide/documents/pub/dhs_id_999999.hcsp",
HYPERLINK "/main/groups/agencywide/documents/pub/dhs_id_000000.pdf"


Dan in MN (dan dot ballek at state dot mn dot us)

I need them to look like this:

HYPERLINK "javascript:link('id_999999')",
HYPERLINK "javascript:download('id_000000')"

I just downloaded the eval version of EasyPattern, and already own WordPipePro. Is it possible to do this with these two tools? If so, how do you do it?

User avatar
DataMystic Support
Site Admin
Posts: 2139
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

Postby DataMystic Support » Fri Apr 15, 2005 7:36 am

Hi Dan,

WordPipe does not support EasyPatterns. However, MS Word does support wildcards, which are similar but harder to understand then EasyPatterns.

You just need 2 search/replaces, one like this:

Replace with

and similarly for the second line.

Simon Carter, - Insulin dose calculator for Type 1 diabetes - 250,000 free software downloads - send huge email attachments

Return to “WordPipe, ExcelPipe and PowerPointPipe Support”

Who is online

Users browsing this forum: No registered users and 1 guest