in reply to replacing text file separators in regex
[^\/] means "not a slash". You might try something like "find the at-sign, then the slash":
# untested $url=~ /^(\w+):\/*(.*?\@[^\/]+)\/(.*)$/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: replacing text file separators in regex
by ehdonhon (Curate) on Jul 05, 2002 at 21:19 UTC |