XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Greg SpahnSubject: Can I search for one line and replace it with multiple lines...like a macro?
Author: Greg Spahn
Date: 22 Jun 2006 12:35 PM
Hello,
I would like to search for a line like:
<ToolShape></ToolShape>

and add another line right after it like this:
<ToolShape></ToolShape>
<IsInch>true</IsInch>

and have this occur until the end of the file.
The search and replace will only let me directly replace a line, not add another one.
Is this possible?
Thanks,
Greg S

Postnext
Minollo I.Subject: Can I search for one line and replace it with multiple lines...like a macro?
Author: Minollo I.
Date: 22 Jun 2006 12:52 PM
- Edit > Replace
- Find What: "<ToolShape></ToolShape>"
- Replace With: "<ToolShape></ToolShape>\n<IsInch>true</IsInch>"
- Check "Regular Expression"
- Click Replace All

Posttop
Greg SpahnSubject: Can I search for one line and replace it with multiple lines...like a macro?
Author: Greg Spahn
Date: 22 Jun 2006 12:59 PM
Thank you!

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.