I have an xpath for an item ?/?/ul/li/?/?/div[@innertext~'^\ needs\ your\ review\ and\ ap']
The word needs may sometimes be need if the number of things to which is referring is plural. I am not seeing any examples on the internet to specify variability or wildcard for this. Is this a simple regex that I am just not getting? Thanks.
regular expression wildcard
Re: regular expression wildcard
Maybe something like this:
need[s]?
I'm no regex expert, I just tried this on rubular.com very quickly as I'm about done for the day!
need[s]?
I'm no regex expert, I just tried this on rubular.com very quickly as I'm about done for the day!
Re: regular expression wildcard
Thanks. Alas, no. The item is not found when the s is present. I will try rubular.com to flush it out.
Re: regular expression wildcard
needs? does the trick. Thanks.
Re: regular expression wildcard
Huzzah! Of course! Rushing at the end of the day there... I always seem to end up Rubular.com doing on my regex experimenting.
Re: regular expression wildcard
Hi guys,
Are you aware there is a built-in regex editor in Studio (look under Tools)?
Are you aware there is a built-in regex editor in Studio (look under Tools)?
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: regular expression wildcard
Not aware! Thanks! I Am Super Happy! Did I mention that I love Ranorex?
Re: regular expression wildcard
Nor was I! Blinkers on, I just go with the tool I usually use when formulating regex for my production code. A web browser is usually open so I defaulted to that. Next time I have Ranorex open I'll take a look, if I remember. Top tip, odklizec.