Note the use of "?" to invoke a "non-greedy match", so that the initial ".*" will stop matching as soon as there's a slash followed by "page\d+".$current_url =~ s{.*?/(page\d+).*}{$1}:
In reply to Re: Stripping part of URL
by graff
in thread Stripping part of URL
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |