I need to ignore the >
in my regular expression in the beginning.
My regular expression:
/(>(.+)(?=<\/a>))/igm
Matches the following:
How do I tell it to ignore the >
in the beginning?
Here is the regular expression on regexr.com.
I need to ignore the >
in my regular expression in the beginning.
My regular expression:
/(>(.+)(?=<\/a>))/igm
Matches the following:
How do I tell it to ignore the >
in the beginning?
Here is the regular expression on regexr.com.
Possible workaround would be to match non >
characters:
[^>]+(?=<\/a>)
Or you take the substring of each of your results in the code itself.