in reply to Regular Expression
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!]
|
|---|