Reputation: 1717
so I have been trying to work out how to do an alternate regex match for a Positive Lookbehind in Javascript, I have been trying on and off for 3 days now with no luck, what I want to do works in PHP, but I NEED it to be Javascript.
here is a PHP example of what I want to do: https://regex101.com/r/YpMbI2/5
I usually try to work things out myself, but after 3 days, I kinda need some assistance :D
Thanks in advance for your help :D
Upvotes: 0
Views: 155
Reputation: 29471
You can use
(?:^|\W)\s?>(.+)(?:\n|$)
since it seems that only the capture group seems to interest you.
Upvotes: 1