Skip to main content.
home | support | download

Back to List Archive

Re: Using ExtractPath to Assign a Property

From: Bill Moseley <moseley(at)>
Date: Sat Dec 15 2001 - 21:54:44 GMT
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 

Who invented these keybords, anyway.

Bill Moseley
Received on Sat Dec 15 21:56:10 2001