Computer Science, asked by vrindashageela7791, 1 year ago

Which package is used for pattern matching with regular expressions in java?

Answers

Answered by sailorQueen
0

Java provides the package which is java.util.regex for pattern matching with regular expressions. Java regular expressions are similar to the Perl programming language.

A regular expression which is a special sequence of characters that helps you to find other strings or sets of strings, using a specialized syntax held in a pattern.

The java.util.regex package primarily consists of the following 3 classes −

  • Pattern Class

  • Matcher Class

  • PatternSyntaxException
Answered by shelbyjones21
2

Answer:

1. Pattern

2. Matcher

Explanation:

Similar questions