Noah Garrett Wallach wrote:
Hi there Perl folks,
Hello,
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?
Perhaps you want something like this: my @capture = $line =~ /blah/g; John -- The programmer is fighting against the two most destructive forces in the universe: entropy and human stupidity. -- Damian Conway -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/