Reply to topic  [ 3 posts ] 
AnyConsonnant wild card 
Author Message

Joined: 2009-09-04 13:11:25
Posts: 28
I just discovered the macroize function (show find, in the menu of the find box). It's very useful.

But now, I need a macro that could, for example, find all "e" vowels between consonnants (for example, xexx, zezz, etc.). Is it possible to write a macro with "AnyConsonnant" wild cards?


2009-09-12 17:55:09
Profile

Joined: 2008-05-17 04:02:32
Posts: 400
The simplest way would be to use a set like this: [bcdfghjklmnpqrstvwxz] — or [bcdfghjklmnpqrstvwxyz] including “y” — which matches any character between “[” and “]” in PowerFind Pro mode. You can shorten them to [bcdfghj-np-tvwxz] or [bcdfghj-np-tvw-z]. Then, something like this will do the job.
Code:
Find All '(?<=[bcdfghj-np-tvwxz])e(?=[bcdfghj-np-tvwxz])', 'E'
Here, (?<=…) is called look-behind (preceded by …) and (?=…) is called look-ahead (followed by …).

AFAIK the best on-line tutorial for the Regular Expression (PowerFind Pro) is:
http://www.regular-expressions.info/tutorial.html


2009-09-13 09:51:27
Profile

Joined: 2009-09-04 13:11:25
Posts: 28
Thanks again!


2009-09-13 18:44:26
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software