(?<=\\)(\\\\)+\x27
worked for me vs your input
\' or \\\' wouldn't be matchedbut \\' or \\\\\\' would
got 2 matches
we're obviously swimming in different logical pools, man, like my boss says ;=)
my regex does not match on an odd number of backslashes in the input u sent, test it. Negative look-behind takes care of that. Or u have another input layout in mind?
u can test it really quick in
http://regexlib.com/RETester.aspx
hey, it was my bad: i meant to send u this one: used positive look-behind instead of negative.
(?<!\\)(\\\\)+\x27
meaning : *match on an even # of backslashes NOT preceded by a backslash*
so apparently my pool was different ;=)