I have a piece of XML:
Code:
<element>
Blah blah $P{foo} blah blah blah $P{bar}...
</element>
and I want to search it for every occurence of "
$P{X}" and get "
X", eg. get something similar to:
Code:
<root>
<el>foo</el>
<el>bar</el>
....
</root>
Do I need regular expressions to handle that..?