@re = $x=~/(\w+;\w+);{0,1}/g; Array @re holds the resulting matches (inside the brackets) of the RegEx $x=~/(\w+;\w+);{0,1}/g
$x=~/(\w+;\w+);{0,1}/g the /g means don't stop after one match. /(\w+;\w+);{0,1}/ \w is a "word" This matches one or more word(s) followed by a semicolon, again one or more words, the 0 or 1 semicolons - the greater of the two, I suppose; this allows you to not end in a semicolon. I suspect the {0,1} would have the same affect as ? HTH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/