What's matched by a regex with the question mark

Report a typo

Given the following regular expression:

String pattern = "ja?a";

Select one or more strings that are matched by it, i.e. calling the matches() method of a string returns true.

Select one or more options from the list
___

Create a free account to access the full topic