Just for curiosity.
Is it possible to create a regular expression that will not match any string, including an empty string?
Yes.
Here are a few examples.
.^
$.
(?!)
Naturally, there are an infinite number of such expressions.
This regex should never match anything (provided you do not use single-line or multi-line modifiers):
$x^
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With