which does work, but there are actually some easier ways, such as:s/<[^>]+>(\w+).*/$1/;
print $1 if />(\w+)</;
In reply to Re^3: *fixed*Problem with <> and regex
by Laurent_R
in thread *fixed*Problem with <> and regex
by luxlunae
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |