Find/Replace Regular Expression

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jdrouin
Posts: 5
Joined: Mon Aug 24, 2009 6:45 pm

Find/Replace Regular Expression

Post 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
Radu
Posts: 9446
Joined: Fri Jul 09, 2004 5:18 pm

Re: Find/Replace Regular Expression

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply