Im trying to use this tool to delete ever occurrence of
<title>Process.31</title>
from my SVG file, the text inside the tag varies though.
I tried
<title >.*</title>
bt no, is there a better way?
Im trying to use this tool to delete ever occurrence of
<title>Process.31</title>
from my SVG file, the text inside the tag varies though.
I tried
<title >.*</title>
bt no, is there a better way?
I suggest running your script, then doing a search for <title>
to see what is left (assuming the text is always between the title tags). Then you could do another search/replace for each variation you find, then continue the search for title until all variations have been found and eliminated.
The thing with .*
is that it is greedy, meaning it will try to match as much as possible.
For example if you have <title>foo</title><title>bar</title>
the longest match will be foo</title><title>bar
.
The opposite of greedy in regex is lazy, which you can obtain by adding a ?
to your regex. So what you’d need is <title>.*?</title>
.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.