How to write Regular Expression which can find this
<a href="#" onclick="javascript:setSectionName('');showFunctionMenu2( ......>xxxxxx</a>
and replace the same with
<a href="#" style="display:none;" onclick="javascript:setSectionName('');showFunctionMenu2( ......>xxxxxx</a>
in html document using Javascript?
I came up with this to find but dont know how to replace the same with new one in html
<a\shref\="\#"\sonclick\="javascript\:setSectionName\(''\)\;showFunctionMenu2\(.+><\/a>
Using jQuery filter
Reference: http://api.jquery.com/filter/