I want to select a checkbox which shows dynamically, how can i use regular expression to capture it regardless the name.
example: @name='document_id[]', all names end with "_id[]". I use $ sign, but it does not.
How to identify dynamic string end with special characters.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to identify dynamic string end with special characters.
Hello,
Please try to use the following expression:
Special characters in regular expressions like [] have to be escaped by using a backslash.
Please take a look at our section RanoreXPath in our User Guide for more information.
Regards,
Markus (T)
Please try to use the following expression:
Code: Select all
@name~'.*_id\[\]$'
Please take a look at our section RanoreXPath in our User Guide for more information.
Regards,
Markus (T)