How much do you know about Java Regex? In Java, Regex, also known as Regular Expression is an API that helps in defining a pattern that can be used to search, edit or manipulate a string. Take the Java Regex quiz with a set of 10 multiple choice questions and answers to test your knowledge. To get further information, you See morecan also check the Java Regex online course.
Range of numbers
Range of alphabets
Range of special characters
None of the preceding
Rate this question:
\d
/d
/z
\z
Rate this question:
A string regular expression must first be compiled into an instance of the Pattern class.
A string regular expression can be compiled into an instance of the Pattern class.
A string regular expression must first be compiled into an instance of the Matcher class.
A string regular expression can be compiled into an instance of the Pattern class.
Rate this question:
Kleen Star
Kleen Plus
Both a & b
None
Rate this question:
The tab
The new line
The carriage return
All of the preceding
Rate this question:
Matches a string that contains zero n only
Matches a string that contains one n only
Matches a string that contains at least one n
Matches a string that contains more than one n
Rate this question:
A regular expression can only be of one character
A regular expression can only be a complicated pattern
A regular expression can be a single expression as well as complicated pattern
None
Rate this question:
Regex class
Regex library
Regex engine
All of the preceding
Rate this question:
A string
An integer
A single character
Multiple characters
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.