If you don't want to capture any slashes, say that!:
print 'http://txs.corp.com:8080/area/es/2215.csv.gz' =~ m[ ( [^/]+ $ ) + ]x;; 2215.csv.gz
In reply to Re: Why is this greedy matching?
by BrowserUk
in thread Why is this greedy matching?
by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |