Google News
logo
Selenium - Quiz(MCQ)
In regular Expression * quantifier refers to:
A)
1 or more of the preceding character
B)
0 or 1 of the preceding character
C)
0 or more of the preceding character.
D)
All of th eabove

Correct Answer :   0 or more of the preceding character.


Explanation :

0 or more of the preceding character

Regular expression is use to search text or value on the page. In regular expression we use dome predefine special character for searching patterns or text like *, dot, [ ], ?, + etc.

[ ]: Single character that appears inside the brackets.
*: 0 or more of the preceding character.
+: 1 or more of the preceding character.
?: 0 or 1 of the preceding character.

Therefore, option C is the correct answer. 

Advertisement