我一直在尝试为字符串创建 RegEx 将近一天,但仍然没有成功,有人可以帮忙吗?
string example (double quotes are options, and can also be single quotes):
"234"? "<img src=\"http://abc.com/a.jpg\" onclick=\"alert(\"\"working with 'quotes'?\"\");\" />"
and the following groups should be extracted:
234
<img src="http://abc.com/a.jpg" onclick="alert(""working with 'quotes'?"");" />
希望这很清楚,请任何人帮助!