Selenium WebDriver and Selenium IDE - If a Selenium function requires a pattern argument, what five prefixes might that argument have?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver and Selenium IDE - If a Selenium function requires a pattern argument, what five prefixes might that argument have?
* which translates to “match anything,” i.e., nothing, a single character, or many characters.
[ ] (character class) which translates to “match any single character found inside the square brackets.” A dash (hyphen) can be used as a shorthand to specify a range of characters (which are contiguous in the ASCII character set). A few examples will make the functionality of a character class clear:
[aeiou] matches any lowercase vowel
[0-9] matches any digit
[a-zA-Z0-9] matches any alphanumeric character
(Continued on next question...)
Other Interview Questions
|