Hi,
According to Sun, the find() method under matcher does the following:
"Attempts to find the next subsequence of the input sequence that matches the pattern."
So in human this means to me that find() returns true if a
string CONTAINS a sequence that matches the regex. However, with my program, it only returns true if the string itself matches the regex. So with the following inputs:
REGEX = "^[U||C]J[A-Z]{5}[0-9]{3}$";
INPUT = "UJZEDGG111"; returns true
INPUT = "<**>UJZEDGG111"; returns false (but should return true)
Here is my full code:
Did I do something wrong here?
-Thanks