Change that last regex to:
$address =~ s!http://(www.(?:[^/]*/*)*)!$1/index.html!
In reply to Re: What regex will swap somewebpage/ with somewebpage/index.html ??
by srawls
in thread What regex will swap somewebpage/ with somewebpage/index.html ??
by agent00013
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |