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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.