in reply to Re: regex help
in thread regex help
I don't know if you noticed but in your original post browse was misspelled. -Enlilwhile ( <DATA> ) { if ( /browse(\/.*)\// ) { #if the current $_ matches #browse followed by a # / followed by anything #but having to be followed by # another / #then put whatever was found #between the parens in $line my $line = $1; print "$line\n"; } } __DATA__ http://www.url.com/browse/ASP/scripts/homesites/ /browse/ASP/scripts/homesites/ /browse/ASP/scripts/homesites/index.htm
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: regex help
by Enlil (Parson) on Sep 27, 2002 at 21:09 UTC |