Hi Mark,
thanks for the detailed scripts. As far as I known and after looking at several other discussions in the forum, there is currently no way of handing over a parameter to the script and thus the copying of the script is necessary.
If you have further questions concerning RegExps you may as well send me a direct message.
Cheers
Daniel