S
Shawn B.
Greetings,
I have a troubling issue that I'm not sure how to approach at this point.
Given the HTML tag (any tag will do):
<div id='divSomething' onmouseover='...'>Next we write
onmouseover='alert(message);' ...</div>
I want to write a Regular Expression that only will search the opening div
tag for the "onmouseover" text. My current expression:
(<.*?(ONMOUSEOVER)\s*=.*?>)
will incorrectly detect:
<div id='divSomething'>Next we write onmouseover='alert(message);' ...</div>
Any ideas how I can limit to only the opening tag?
Thanks,
Shawn
I have a troubling issue that I'm not sure how to approach at this point.
Given the HTML tag (any tag will do):
<div id='divSomething' onmouseover='...'>Next we write
onmouseover='alert(message);' ...</div>
I want to write a Regular Expression that only will search the opening div
tag for the "onmouseover" text. My current expression:
(<.*?(ONMOUSEOVER)\s*=.*?>)
will incorrectly detect:
<div id='divSomething'>Next we write onmouseover='alert(message);' ...</div>
Any ideas how I can limit to only the opening tag?
Thanks,
Shawn