public boolean isMatch ( CharSequence text ) { try { if ( text . length ( ) == 0 ) { return acceptEmpty ; } InputReader reader = Input . getInstance ( text ) ; return isMatch ( reader ) ; } catch ( IOException ex ) { throw new IllegalArgumentException ( "can't happen" ) ; } }
Return true if text matches the regex