Basically, I am searching a string containing html. And I want to find the first instance of "<input" or "<div" or "<form", and return the index of whichever comes first?
I have a way to do it with many loops, but it's really inefficient. Is there a simple way to do it? maybe with regex?
Thanks!
