How can I search a string of lettres and numbers in RegEx, that includes backslashes?
This does not work:
I am just not able to find a wildcard for \
Thanks Beatrix. But I can't escape them, as they are in a variable string I am searching. I would need a wildcard for the backslash. Strangely,
\x7B\x5Ccolortbl(?X:.+)\x7D works on this string:
While it doesn't work in this one:
A dot doesn't match a newline unless you tell it otherwise through RegEx.Options or a switch, but this pattern may be all you need:
BTW, you can match anything literally by putting it between \Q and \E, for example:
\Qthis+that?\E ... matches ... this+that?