1.

What Are The Regular Expression Patterns Available In Selenium?

Answer»

Selenium REGULAR EXPRESSION patterns offer the same wide array of special characters that exist in JavaScript.

Below are a subset of those special characters:

.: any single character

[ ]character class: any single character that appears inside the brackets

*quantifier: 0 or more of the preceding character (or GROUP)

+quantifier: 1 or more of the preceding character (or group)

?quantifier: 0 or 1 of the preceding character (or group)

{1,5}quantifier: 1 through 5 of the preceding character (or group)

|alternation: the character/group on the LEFT or the character/group on the right

( )grouping: often used with alternation and/or quantifier

Selenium regular expression patterns offer the same wide array of special characters that exist in JavaScript.

Below are a subset of those special characters:

.: any single character

[ ]character class: any single character that appears inside the brackets

*quantifier: 0 or more of the preceding character (or group)

+quantifier: 1 or more of the preceding character (or group)

?quantifier: 0 or 1 of the preceding character (or group)

{1,5}quantifier: 1 through 5 of the preceding character (or group)

|alternation: the character/group on the left or the character/group on the right

( )grouping: often used with alternation and/or quantifier



Discussion

No Comment Found