in reply to Stripping part of URL
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}:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stripping part of URL
by htmanning (Friar) on Mar 24, 2015 at 03:35 UTC | |
by mark4 (Acolyte) on Mar 24, 2015 at 14:57 UTC |