this works. However when I change the regex to#! /usr/bin/perl -l my $url = "http://example.com/user/1234/" ; $url =~ s![^/]+(?=/$)!_bla_! ; print "URL = $url" ;
it doesn't!s![^/]+(?=/)$!_bla_!
In reply to regex issue (positive look-ahead) by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |