You are thinking very complicated ;-)
Try to find the string teacher, a =", as few chars as possible, and then again a "
$var =~ /teacher="(.*?)"/;
HTH, Rata
[update2: removed escaping the double quotes (as they are not regex metacharacters) - thanks johngg for the feedback!]In reply to Re: Regular Expression
by Ratazong
in thread Regular Expression
by archimca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |