Java Programming quiz, level Advanced, question 20
| Question: | The lookingAt method (run on a java.util.regex.Matcher object) |
| Answer 1: | returns TRUE if a Sting starts with a match to regular expression (Pattern) This was the CORRECT answer |
| Answer 2: | returns TRUE if a Sting includes a match to a regular expression (Pattern) |
| Answer 3: | returns TRUE if a Sting completely matches a regular expression (Pattern) - i.e. it looks to match the whole of the string against the regular expression, rather that looking for a match somewhere within the string as regular expression handlers to in languages such as Perl. |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|