On 18/06/2011 at 14:29:34 GMT+08:00 [email protected] 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.

Hi,

this should do the job for you:

Search w/ Grep:

<g:brand><!\[CDATA\[(.+)\]\]></g:brand>

Replace with:

<g:brand><![CDATA[\1]]></g:brand><g:mpn><![CDATA[\1]]></g:brand>

Best,
Holger

--
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>

Reply via email to