in reply to Capturing RegExp Matches
*@example.net "\""@foo.bar fred&barny@example.com ---@example.com foo-bar@example.net "127.0.0.1"@[127.0.0.1] Muhammed.(I am the greatest) Ali @(the)Vegas.WBA ':; $@[] *()@[]
As for the general question, "how do I store all strings that a regex matches", just use the regex in list context, with a /g modifier. If you have capturing parens in your regex, you'll have to put a set of parens around the whole regex, and filter out the submatches (but it's probably easier to turn the capturing parens into non-capturing).
Abigail
|
|---|