Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: What regex will swap somewebpage/ with somewebpage/index.html ??

by srawls (Friar)
on Jun 19, 2001 at 00:52 UTC ( [id://89442]=note: print w/replies, xml ) Need Help??


in reply to What regex will swap somewebpage/ with somewebpage/index.html ??

I guess it won't let me edit my post ...

Change that last regex to:

$address =~ s!http://(www.(?:[^/]*/*)*)!$1/index.html!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://89442]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found