I'm trying for hours with regex: I need a regex to select all that is inside underlines. Example:
\_italic\_
But with the only condition that I need it to ignore \\_
(backslash followed by underscore).
So, this would be a match (all the text which is inside the \_
):
\_italic some text 123 \\_*%&$ _
SO far I have this regex:
(\_.*?\_)(?!\\\_)
But is not ignoring the \\_
Which regex would work?