Hi Guys
I have the following components with the text = Designators
But some are upper and some are lower, my current expression is:
form[@text~'^(?i:Designator)$']
But Ranorex still won't see it, any help appreciated.
Regards
Case sensitive regular expression
Re: Case sensitive regular expression
Hi,
If the text you are looking for is Designators, then you must either remove '$' sign from the regex (which means the end of the string) or you must include 's' to the searched pattern.
If the text you are looking for is Designators, then you must either remove '$' sign from the regex (which means the end of the string) or you must include 's' to the searched pattern.
or like this:^(?i:Designator)
^(?i:Designators)$
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Case sensitive regular expression
Hi mate
I've done both these things and it still won't get picked up with either of the following:
form[@title~'^(?i:Designator)$']
form[@title~'^(?i:Designators)']
I used both title and text as title is what is picked up by SPY.
Cheers
I've done both these things and it still won't get picked up with either of the following:
form[@title~'^(?i:Designator)$']
form[@title~'^(?i:Designators)']
I used both title and text as title is what is picked up by SPY.
Cheers
Re: Case sensitive regular expression
Hi
I forgot to mention the whole title is:
THAMES Designators - BLANK
I forgot to mention the whole title is:
THAMES Designators - BLANK
Re: Case sensitive regular expression
Hi,
In this case, the regex should look like this...
In this case, the regex should look like this...
'^' character means 'start of string' but your sought word is apparently in the middle of string(?i:Designators)
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Case sensitive regular expression
Hi mate
So literally:
Title~'(?I:Designators)']
Yes apologies the middle word as the other two are variables
So literally:
Title~'(?I:Designators)']
Yes apologies the middle word as the other two are variables
Re: Case sensitive regular expression
Thanks mate that worked
Re: Case sensitive regular expression
You are welcome. I'm glad I could help
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration