$html = "<html><meta name=\"description\" content=\"sf\"></html>"; $html =~ /<meta.+?name\s*=\s*("|')description\1\.+?content\s*=\s*("|') +(.*?)\2/; print $3;
In reply to Repost of regex by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |