At 11:29 PM -0700 on 6/17/11, mackdoyle wrote:
I am trying to modify a Google XML feed to include the mpn node.
I need to take the Brand node and copy and paste it. Then change the
new brand node to mpn.
So I thought I could replace "<g:brand><![CDATA[SwissGear]]></
g:brand>" with <g:brand><![CDATA[SwissGear]]></g:brand><g:mpn><!
[CDATA[SwissGear]]></g:brand>
However the string SwissGear needs to be a wild card since it is
different for each record.
I am new to grep and regular expression but it seems like it should be
easy
Thanks for any help
Hello Mackdoyle.
In the Find field, instead of entering "SwissGear", simply
enter "(.+?)" without the quotes.
In the replace field, instead of entering "SwissGear", simply
enter "\1" without the quotes.
By doing the above, the string will be ignored, and will not
be replaced, regardless of what you have there.
Give it a try, and you will quickly see how it works.
WW
--
............................................................................
EPN Website : http://www.endtimeprophecy.net
EPN Blog : http://www.endtimeprophecy.net/Blog/
EPN RSS Feed : http://www.endtimeprophecy.net/EPN-RSS-Feed.xml
Top Christian Sites : http://www.topchristiansites.org
Armageddon BBS : http://www.endtimeprophecy.net/ArmageddonBBS/
Facebook : http://www.facebook.com/profile.php?id=100001989026091
Tumblr : http://endtime-prophecy-net.tumblr.com
Twitter : http://twitter.com/WordWeaver777
............................................................................
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>