I write a Regex to get the attrs in a tag. But it got a problem when the attrs only has one letter
(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[']?[>"]))+.)["']?
When it to analysis this:
href='www.google.com' target="_blank" title="S"
it will get:
[[href, www.google.com],[target, _blank],[title, "S]]
How can I get:
[[href, www.google.com],[target, _blank],[title, S]]