Hi there Perl folks,

Okay I am trying to figure this out.

I am trying to match the following:


$line = "blah&blah&blah"


so I have the following line to match that

$line =~ /((?:blah).*?){0,5}/;
But I want to capture "blah" in a variable like
$capture = $1;

or something like that?

am I on the right track?

Cheers,

Noah

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to