I have a string like this one:
{{foobar
| option1 = foo
| option2 = foo
| <!-- more options -->
| something = xxx
| thisoption = xxx
| <!-- more options -->
}}
I want it to be “thisoption = xxx” to be replaced by “thisoption = abc”. It shouldn’t matchany of the following:
{{foobar
| option1 = foo
| option2 = foo
| thisoption = xyz
}}
{{foobar
| option1 = foo
| option2 = foo
}}
{{someotherthing
| thisoption = xxx
}}
How can I do this?
To answer my own question, this seemed to do the trick:
Thanks to everyone who helped out!