in reply to
Reg ex question
Parens are used to capture pieces for backreferences, with the contents of the first set going into $1, the second into $2 and so. In this case:
$variable =~ m/-----;=(99);helloworld/;
[download]
Most likely you want something more general, but this shows you to how capture "99" for use in the $1 backreference.
-
mark
Comment on
Re: Reg ex question
Download
Code
In Section
Seekers of Perl Wisdom