Yeah, you'd have to change it to m/([^\/]+)$/ to work. The original used vertical bars so they didn't have to escape the slash in the brackets.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: help in understanding a regex
by roboticus
in thread help in understanding a regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |