in reply to What regex will swap somewebpage/ with somewebpage/index.html ??
if you know you will always add 'index.html', a regex is too much. Try this:
if you won't always add it, try this as a regex:$address .= '/index.html'
$address =~ s!http://www.(?:[^/]*/*)*!/index.html!
|
---|
In Section
Seekers of Perl Wisdom