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>)
regex101 demo
Or you take the substring of each of your results in the code itself.
You can use:
.*?>(\w+)<
Here you can check a working example:
Debuggex Demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With