in reply to Series of REGEX with OR

I'm guessing this is line 45 -- and it's complaining because $1 is the first capture of a regex (using brackets), but you haven't used brackets in any of your regexes.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Replies are listed 'Best First'.
Re^2: Series of REGEX with OR
by wrkrbeee (Scribe) on Apr 27, 2016 at 17:23 UTC
    Thanks talexb! can you clarify what you mean by "you haven't used brackets in any of your regexes" ? I used one set of parentheses to extract the target data, which I thought would be held in $1. Not sure where you are going here. Sorry!