In a much as I will not recommend using regex to parse HTML doc., however, for this you could use Look-Around Assertions like so:
use warnings; use strict; my $str = "<div class='PlayVideo'></div> A8A <div class='RadioButtonClipStyle'>"; if ( $str =~ m#(?<=</div>)(.+?)(?=<div.+?>)#s ) { print $1; ## prints A8A }
In reply to Re: to get next line of pattern matched
by 2teez
in thread to get next line of pattern matched
by ansh batra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |