J
jgarrard
Hi,
I have an array of strings which are regular expressions in the PERL
syntax (ie / / delimeters).
I wish to create a RegExp in order to do some useful work, but am stuck
for a way of getting these strings into the RegExp object.
The RegExp constructor seems to want two parameters - the non /
delimited expression, and the global modifiers.
Am I really going to have to strip off the leading and trailing /
characters or is there a quick way around it?
Many thanks.
Jeremy
I have an array of strings which are regular expressions in the PERL
syntax (ie / / delimeters).
I wish to create a RegExp in order to do some useful work, but am stuck
for a way of getting these strings into the RegExp object.
The RegExp constructor seems to want two parameters - the non /
delimited expression, and the global modifiers.
Am I really going to have to strip off the leading and trailing /
characters or is there a quick way around it?
Many thanks.
Jeremy