in reply to partial results in $1 $2 after re failure

As I was investigating this I found that if you leave out the '$' in the regex the script works "more correctly". Since '-' isn't caught by \w the output is as follows

<abc><def> <xyz><6> <123><456>

-----------------------------------
Frank Wiles <frank@wiles.org>
http://frank.wiles.org

Replies are listed 'Best First'.
Re^2: partial results in $1 $2 after re failure
by Aristotle (Chancellor) on Jun 30, 2002 at 16:15 UTC
    That's not "more correctly" because with your version of the regex, the second line is an actual match. Obviously then we do get that match's results, which is entirely expected behaviour and therefor doesn't help us here.

    Makeshifts last the longest.