[^\/] means "not a slash". You might try something like "find the at-sign, then the slash":
# untested $url=~ /^(\w+):\/*(.*?\@[^\/]+)\/(.*)$/;
In reply to Re: replacing text file separators in regex
by fglock
in thread replacing text file separators in regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |