Page 1 of 1

Find/Replace Regular Expression

Posted: Thu Feb 24, 2011 12:53 am
by jdrouin
Dear All,

I have a text file generated from a book that contains page markers, as [Page 1], [Page 2] and so on.

How can I do a Find/Replace to remove all of these markers? I tried adding [Page *] into the Text To Find field, with regular expressions enabled, but it doesn't seem to recognize the * as a wildcard, at least not in this configuration.

Any advice would be much appreciated.

Thanks,

Jeff

Re: Find/Replace Regular Expression

Posted: Thu Feb 24, 2011 11:02 am
by Radu
Dear Jeff,

Regular expressions are the way to do this but they have a more complex syntax than the one you are trying to use.
Try this regular expression for example:

Code: Select all

\[Page (.*?)\]
Regards,
Radu