Regex matching no strings

后端 未结 2 1756
既然无缘
既然无缘 2021-01-25 03:56

Does there exist a regular expression that matches no strings? If so, what is it?

To be precise, I\'m looking for a regular expression r such that the follo

2条回答
  •  时光说笑
    2021-01-25 04:39

    The following regex should match no strings. It will match any single character which is neither a whitespace character, nor a nonwhitespace character.

    [^\S\s]
    

提交回复
热议问题