in reply to Variable in regex...
The second "<--HERE" in your error line tells EXACTLY where the error exists. In some regexen, especially those with multiple similar elements, knowing that the error occured at a close_paren may not be enough.<--HERE
In this case (even before the janitorial services) spotting the error was not hard, but note also the suggestion for an alternate approach.
Updated to clarify (originally sloppy) syntax in first paragraph.
|
|---|