Alex Rivera | Logout

Regular expression that rejects all input?

Asked 2008-09-15T12:42:53.067
12

Is is possible to construct a regular expression that rejects all input strings?

Edit
Report

1 Answer

0

[^]+ should do it.

In answer to aku's comment attached to this, I tested it with an online regex tester (http://www.regextester.com/), and so assume it works with JavaScript. I have to confess to not testing it in "real" code. ;)

answered 2008-09-16T07:16:29.503

Your Answer