I'm looking for a regular expression that checks for any html tag (assume any string of a-z longer than 1 letter is valid), with any number of attributes so long as one of which is an action="POST".
i.e the following would match:
<a href="www.somelink.com" action="POST" />
<img action="POST" src="www.someimage.com" ></img>
BUT this would not
<a href="www.somelink.com" />
I have been working on this and came to the below,
^<([a-z]+)([^<]*)*action="POST"(?:>(.*)<\/\1>|\s+\/>)$
however it is not matching (and crashing some reg ex checkers). Any thoughts or pushes in the right direction? `