I hope this is a suitable forum where somebody can kindly help me.
If I have a line such as :
<channel service_id="01a3" name="MEO 3D" service_type="0019"/>
I need a regular expression to generically match only the part within the second set of quotes.
The line I have shown is only an example and I have many lines to match which are all of the same syntax.
In case it helps, I have used XXX below to show the parts of the lines which are variable :
<channel service_id="XXX" name="XXX" service_type="XXX"/>
The matching expression must be able to match any combination of characters or spaces within only that second set of quotes.
Letters, if present, will normally be a mixture of upper and lower case but, if it helps to match, I can force them to be upper case before using your suggested match. I will want to make them all upper case anyway.
Alternatively, if the above is not possible, could somebody instead suggest a regex to generically match this part of the line, from the same example :
Note that the end of that match must not include the " after 3D, as correctly shown.
Either way, my aim is to then use
to add some text after the matching expression.
eg to use the same example, my ultimate result is something like :
<channel service_id="01a3" name="MEO 3D Hispasat" service_type="0019"/>
If relevant, the tool / editor I am using to Find / Replace is Open Office Writer and the file is an .xml