I just need someone to correct my understanding of this regex , which is like a stopgap arrangement for matching HTML tags.
< (?: "[^"]*" ['"]* | '[^']*'['"]*|[^'">])+ >
My understanding -
<
-Match the tag open symbol(?:
- Cant understand whats going on here . What do these symbols mean?"[^"]*['"]*
An arbitrary string in double quotes. Something else going here ?'[^']*'['"]*
- Some string in single quotes[^'">]
- Any character other than ' " >.
So its a '<' symbol .Followed by a string in double quotes or in single quotes or any other string which dosent contain ' " or > , repeated one or more times followed by a '>' .
Thats the best I could make out .