Edited about 30 secs after posting - the regex does not work.
Your regex is not delimited. Using the explicit match (m//) notation might help clarify things.
It also needs the g modifier to match all cases.
my $str = 'Link:1625 housing Link:2004'; my @matches = ( $str =~ m/(?:link:) [^\s\|]+/g );
See perlretut for more examples.
(I have not tested that the regex works, though).
In reply to Re: Perl Regex
by swl
in thread Perl Regex
by audioboxer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |