how to extract the onclick value from a string
Posted: Tue Jan 25, 2005 11:10 am
Hello
Assuming a string has the value:
onclick="<javascript code here>"
or
onclick='<javascript code here>'
is there an easy method using regular expression to obtain the JavaScript code without resorting to parsing?
onclick is case insensitive and the <javascript code here> may contain double or single quotes, but you can assume it is legal
any help would be appreciated
Assuming a string has the value:
onclick="<javascript code here>"
or
onclick='<javascript code here>'
is there an easy method using regular expression to obtain the JavaScript code without resorting to parsing?
onclick is case insensitive and the <javascript code here> may contain double or single quotes, but you can assume it is legal
any help would be appreciated