In java, you can text a regex by doing
"mystring".matches("myregex")
But is there a certain regex you can use, that will make matches
function evaluate to a false
? It needs to work for all cases (i.e. no matter what string you test it with).
Thanks.
matches()
.