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?
AnyConsonnant wild card
Re: AnyConsonnant wild card
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.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
Code: Select all
Find All '(?<=[bcdfghj-np-tvwxz])e(?=[bcdfghj-np-tvwxz])', 'E'
AFAIK the best on-line tutorial for the Regular Expression (PowerFind Pro) is:
http://www.regular-expressions.info/tutorial.html