What is the purpose of the Character class in the context of Java regex?

Last Updated :
Discuss
Comments

What is the purpose of the Character class in the context of Java regex?

It is used to represent a character within a pattern

It is used to define the case sensitivity of regular expressions

It helps in escaping characters in a regular expression

It is used to create a regular expression pattern dynamically

Share your thoughts in the comments