I'm using regex js\w*=\"[^\"]+\"
to match and replace tags in HTML that begin with js
like jsname="name" jscontroller="somecontroller"
etc.
Problem is, if there are spaces before and after the =
sign it matches nothing. How can this be solved?
This matches fine jsname="name" jscontroller="somecontroller"
This does not match but should: jsname = "name" jscontroller = "somecontroller"
Can you help?