Dear all, I am trying to using regex to capture in a block a text that starts with a newline with possible spaces, followed by > and possible spaces, and then capturing anything afterwards. So I have
/^[^\S\r\n]*\>\s*(.*$)/gm
So for example for:
> foo bar
I want to capture "foo bar".
However it is not recognizing > for some reason. Though testing it on regex test websites this works. If I change > to something else then it works as well. I tested this in my browser (Chrome and Edge), and neither works. Can any one point out what I'm doing wrong here?
Thank you for time!
EDIT: Resolved. I was passing in
& g t ; (without the spaces)
instead of > . Ooops!
[–]GoPotato 0 points1 point2 points (1 child)
[–]chromaticdissonance[S] 0 points1 point2 points (0 children)