Gossamer Forum
Home : General : Perl Programming :

how to do this simple regex?

Quote Reply
how to do this simple regex?
Does anybody know how to return the following string using regex?

Input $var="http://www.mysite.com/toplevel/file.html

Output return "/toplevel/file.html"

I.e. basically how to strip out the absolute path part?
Subject Author Views Date
Thread how to do this simple regex? scorpioncapital 4763 Sep 11, 2003, 12:30 PM
Thread Re: [scorpioncapital] how to do this simple regex?
Andy 4681 Sep 11, 2003, 12:37 PM
Thread Re: [Andy] how to do this simple regex?
scorpioncapital 4684 Sep 11, 2003, 12:51 PM
Post Re: [scorpioncapital] how to do this simple regex?
Andy 4656 Sep 11, 2003, 12:57 PM
Post Re: [scorpioncapital] how to do this simple regex?
Crolguvar 4567 Oct 9, 2003, 7:32 AM