Is it possible to know if a stream/string contains an input that could match a regular expression.
For example
String input=\"AA\";
If you just want to check if a string contains some pattern specified by a regex:
String s = ...; s.matches( regex )