You're asking for trouble by putting your pattern in a string before using it in a regex. To avoid multiple-quoting headaches, use qr like this:
my $regexp = qr{(?:ftp:\/\/)?\/{5}(a-z_)\/}; if ($link =~ /$regexp/) { ... }
In reply to Re: Complicated regexp problem
by Anonymous Monk
in thread Complicated regexp problem
by stefanches7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |