Using regular expression in Selenium

Here is the xpath I want to use regular expression.
Code with out using regular expression:
Code using regular expression:

Alternative is to use contains in the xpath. Here is the example:

Leave a Reply

Your email address will not be published. Required fields are marked *