Regular Expression To Find And Replace Text
Solution 1:
If your language/tool supports PCRE regex flavour, you can do:
- Find:
(?s)<Random\b.*?\K/>
or<Random\b.*?\K/>
for multilines - Replace:
><Operating>\n<Operating>All</Operating>\n</Operating>\n</Random>
If it doesn't, use:
- Find:
(<Random\b.*?)/>
- Replace:
$1><Operating>\n<Operating>All</Operating>\n</Operating>\n</Random>
You may have to escape the <
and >
- Find:
(\<Random\b.*?)/\>