I'm no regex master, but if it were me I'd do it in two stages:
for ($text =~ /<tr>(.*?)<\/tr>/gmsi){ $selected=$1; if ($selected =~ /ISTF/is) { $selected_text = $1 ; ## Your code here } }
andre germain
"Wherever you go, there you are."
In reply to Re: How do I extract all text around a keyword between two symbols?
by Agermain
in thread How do I extract all text around a keyword between two symbols?
by cdherold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |