In regular Expression * quantifier refers to:

Options
- 0 or more of the preceding character.
- 1 or more of the preceding character
- 0 or 1 of the preceding character
- All of these


CORRECT ANSWER : 0 or more of the preceding character.

Discussion Board
Selenium

Answer: 0 or more of the preceding character
Solution: 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 A is the correct answer.


Rohit Srivastava 07-28-2014 05:14 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement