At 09:17 AM 12/15/01 -0800, Bob Stewart wrote:
Original String: '/forums/load/foo/bar.html'
replace /forums/load/foo/bar.html =~ m[^.*/forums/load/([^/]+)/.*$][$1]: Matched
Result String: 'foo'
replace foo =~ m[^.*/forums/([^/]+)/.*$][$1]: No Match
Result String: 'foo'
So note here that the first pattern matched and the result string is "foo", then you see that's it not trying the next pattern on the result of the first
^^^
now
Who invented these keybords, anyway.
Bill Moseley
mailto:moseley@hank.org
Received on Sat Dec 15 21:56:10 2001