[Israel.pm] Regex question: alternation between a delimiter and EOL
E.Dan at F5.com
Wed Jan 24 04:42:58 PST 2007
I can't do something like:
although I'd like too...
[edan] Why not? Works fine. Might not be the best regexp (better to use /key=([^;]+)(;|$)/g), but what you wrote works fine (assuming you want to capture the values only, despite saying you want to capture the key=value pairs, but I assume that's not your issue).
What problem are you having with the regexp you wrote?
More information about the Perl