Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by srawls (Friar)
on Jun 19, 2001 at 00:52 UTC ( #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!
  • Comment on Re: What regex will swap somewebpage/ with somewebpage/index.html ??
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://89442]
help
Chatterbox?
[Lotus1]: I was here

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2018-06-18 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (110 votes). Check out past polls.

    Notices?