Renaming xml files using file contents and RegEx

Hi,

I'm trying to work out how to add an xml key value from the contents of the file to the file itself.
The file has variable length contents so I can't use a predictable start position or length.

How can I read the contents of the file into a string so I can use regular repressions with a capture group to extract the value I'm looking for?
Is the JS implementation in AdvancedRenamer capable of this?

Many thanks, Barry.
Reply to #1:
Check out the <File Content> & <File Line> tags (Advanced Tags). You can use tags in a script using app.parseTags().

Note that the <File Line> tag was introduced in Version 3.61 (14. jan. 2014) but is not mentioned in the User Guide - however see the What's New page for details:
https://www.advancedrenamer.com/whatsnew