in reply to Regular Expression
Maybe something like this will help guard against javascript screwing up the match, but assumesif( $html =~ /<body (.*?)>/si ){ my $body_attributes = $1; }
Update: added strike and bold after reading/noting ikegami's response/<body((?:\s+(?:\w+=".*?"))*)>/si
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regular Expression
by ikegami (Patriarch) on Jun 28, 2005 at 21:38 UTC |