What is the regular expression to match a digit (0-9) in a string?
Answer options
A
True
B
False
Correct answer: False
Explanation
Quick AnswerThe correct answer is False because it directly addresses the core logic of Java Programming.
\B matches a non-word boundary position, not a word boundary (that is \b).