Search for lines and replace using regular expression
Posted: Sun Jul 05, 2009 10:47 am
Example line below
<item>Some Title text
<item>Some Different Title text
I would like to be able to search for all text like above and replace with
<item>Some Title Text<code>
<item>Some Different Title text<code>
Sounds simple - I can do a search using regular expression
<item>.*
That finds the lines, but when I try to do a replace using replace string
<item>.*<code>
I get
<item>.*<code>
<item>.*<code>
Cant figure it out so hope someone can help - TIA
<item>Some Title text
<item>Some Different Title text
I would like to be able to search for all text like above and replace with
<item>Some Title Text<code>
<item>Some Different Title text<code>
Sounds simple - I can do a search using regular expression
<item>.*
That finds the lines, but when I try to do a replace using replace string
<item>.*<code>
I get
<item>.*<code>
<item>.*<code>
Cant figure it out so hope someone can help - TIA