Temporary commenting and uncommenting ulinks
Oxygen general issues.
-
- Posts: 176
- Joined: Wed Apr 29, 2009 4:55 pm
Temporary commenting and uncommenting ulinks
Dear All,
in my source there are lots of <ulink src="http:/server.com">label</ulink> fragments.
I'd like to temporarily disable all the links in my source, but to keep the label itself there:
<!--ulink src="http:/server.com"-->label<!--/ulink-->
Can anybody suggest the exact regular expression for replacing all such occurrences via the Oxygen Search/Replace dialog?
Thanks, Jan
in my source there are lots of <ulink src="http:/server.com">label</ulink> fragments.
I'd like to temporarily disable all the links in my source, but to keep the label itself there:
<!--ulink src="http:/server.com"-->label<!--/ulink-->
Can anybody suggest the exact regular expression for replacing all such occurrences via the Oxygen Search/Replace dialog?
Thanks, Jan
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Temporary commenting and uncommenting ulinks
Hello Jan,
You can use the following expressions and options in the Oxygen Find/Replace dialog:
Text to find:
Replace with:
Options: Regular expression
Regards,
Adrian
You can use the following expressions and options in the Oxygen Find/Replace dialog:
Text to find:
Code: Select all
<(ulink\s+src=[^>]+)>([^<]*?)</ulink>
Code: Select all
<!--$1-->$2<!--/ulink-->
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 176
- Joined: Wed Apr 29, 2009 4:55 pm
Re: Temporary commenting and uncommenting ulinks
Adrian,
thanks a lot for showing the way.
Finally I use a slightly modified variant:
Replaced with:
and the following code for the reverse procedure:
Replaced with:
HTH to anybody in the future,
Jan
thanks a lot for showing the way.
Finally I use a slightly modified variant:
Code: Select all
<(ulink[^>]+)>([^<]*?)<(/ulink)>
Code: Select all
<!--$1-->$2<!--$3-->
Code: Select all
<!--(ulink[^>]+)-->([^<]*?)<!--(/ulink)-->
Code: Select all
<$1>$2<$3>
Jan
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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