Page 1 of 1

about the searchMatchMode.MatchRegExp

Posted: Tue Apr 10, 2007 2:42 am
by JackZhang
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 !

Posted: Wed Apr 11, 2007 6:03 pm
by webops
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

Posted: Thu Apr 12, 2007 2:38 am
by JackZhang
Thank you very much.
if there are many elements of match the regular .what can I get the list of the elements

Posted: Sun Apr 15, 2007 7:32 pm
by webops
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