Find/Replace Regular Expression
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 5
- Joined: Mon Aug 24, 2009 6:45 pm
Find/Replace Regular Expression
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
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
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Find/Replace Regular Expression
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:
Regards,
Radu
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 (.*?)\]
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service