Home » JAVA Programming » Regular Expressions » Question
  1. Which of the following matches end of the string using regular expression in java?
    1. \*
    2. \z
    3. \\
    4. \Z
    5. None of these
Correct Option: B

\z is used to match end of the entire string in regular expression in java.



Your comments will be displayed only after manual approval.