about the searchMatchMode.MatchRegExp

Class library usage, coding and language questions.
JackZhang
Posts: 4
Joined: Tue Apr 03, 2007 9:25 am

about the searchMatchMode.MatchRegExp

Post by JackZhang » Tue Apr 10, 2007 2:42 am

Hi
I use the explorerControl.Element.FindChild(Role.Text, "\\d{1,7}", Ranorex.SearchMatchMode.MatchRegExp) but return null,
when i use the explorerControl.Element.FindChild(Role.Text, "123", Ranorex.SearchMatchMode.MatchRegExp) ,return the first found element.

why they don't support the regular such as "\d{1,7}", and what can I do
to get all the match the regular 's element.
Thank you very much !

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Wed Apr 11, 2007 6:03 pm

We do not support all possible RegExp metacharacters only the basic ones in V1.1.0.
Please see the documentation for more information:

http://www.ranorex.com/Documentation/Ne ... hMode.html

Jenö
Ranorex Team

JackZhang
Posts: 4
Joined: Tue Apr 03, 2007 9:25 am

Post by JackZhang » Thu Apr 12, 2007 2:38 am

Thank you very much.
if there are many elements of match the regular .what can I get the list of the elements

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Sun Apr 15, 2007 7:32 pm

can I get the list of the elements
We implemented this feature for the next Version.
In V1.2.0 the function Element.FindChildren searches the sub-tree of the element and returns all children that match the specified role, name, className and search mode.

Jenö
Ranorex Team