Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1268.Advanced search and replace -- How to make name in "text" tag the same case in preceding "brand" tag?

User: Dilip -- 2014-12-07          << 1267  1269 >>
Hits: 1073
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Find the case insensitive brand name between <text> tag and use the same case found
in the preceding <brand> tag
Input Sample:
<brand>Audi</brand><model>123</model>
<text>audi is a nice car. aUdI is also 
a sports car</text>

<brand>Mercedes benz</brand>
<model>av3</model><text>merCEDEZ benz 
is also nice car but MercendeZ Benz is 
not a a sports car</text>
Output Sample:
<brand>Audi</brand><model>123</model>
<text>Audi is a nice car. Audi is also 
a sports car</text>

<brand>Mercedes benz</brand>
<model>av3</model><text>Mercedes benz 
is also nice car but Mercedes benz is 
not a a sports car</text>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace' dialogue
* set 'search for pattern' to:

* set 'replace with pattern' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to shuffle all lines of text in specified range? (50%)
How to find all commas in between text tag and replace with br tag? (49%)
How to make multiple text replace at the same time? (49%)
How to replace alt text with string from title tag? (48%)
How to replace one content of same files with different contents ? (48%)
How to count apperance of distinct IP and remove specified IP range? (47%)
How to split each line of text into 2 lines with same number of characters? (47%)
How to delete all text after the second comma in each line? (47%)

Check Demo of Advanced search and replace
Keywords:
found  tag  rand  find  same  case  between  ran  fin  name  same name  the same file name  search same file  text between pattern  search and replace between  h tag  search between  same file