Regex to *not* match any characters
Posted
by Erick
on Stack Overflow
See other posts from Stack Overflow
or by Erick
Published on 2010-05-28T15:12:28Z
Indexed on
2010/05/28
15:22 UTC
Read the original article
Hit count: 197
regex
I know it is quite some weird goal here but for a quick and dirty fix for one of our system we do need to not filter any input and let the corruption go into the system.
My current regex for this is "\^.*
"
The problem with that is that it does not match characters as planned ... but for one match it does work. The string that make it not work is ^@jj (basically anything that has ^ ... ).
What would be the best way to not match any characters now ? I was thinking of removing the \
but only doing this will transform the "not" into a "start with" ...
© Stack Overflow or respective owner