I have match a group, but I don't know how to get the required extract.
I have this string:
<myTagName >
<mySecondTagName >
And I have this regular expression:
^(\s|\d).*?\<+([a-zA-Z])([0-9]|_|-|[a-zA-Z])*+(\s|\d)+(>)
And then I want to get the tag name only if the criteria matches. How should I specify this capturing group?
I mean I say Javascript to return me the tag name only if before it comes some certain characters, and is also followed by some the other set. The rules are specified already in the given regexp, but they are unconditional and without any look-around.