Using regular expression to find a control

Dec 19, 2011 at 7:00 AM


The control I want to find has an integer value which appears in the middle of the id string and this integer keeps on changing with referesh.

Control information:-

Public Addresses_Footer_New As New CUITe_HtmlCell("Id=gridPanel_ctl42_cellNew")

I have another control in same page with id:-

Public celNew As New CUITe_HtmlCell("Id=ctl00_PlaceHolderMain_OrgUnitParent_ctl210_cellNew")

I want to use regular expression to find these controls.

Using below code

clearly does'nt solve my problem. I have to use something like:- "gridPanel_ct" & [0-9]* & "_cellNew" as regular expression. But don't know the correct way to do so.

Could anyone help please?




Dec 20, 2011 at 4:34 AM

This is urgent. Could anyone please reply with a solution.


Dec 21, 2011 at 2:09 PM

For now we have only "SetSearchPropertyRegx" option which uses "Contains" logic.

I can see if support for "StartsWith", "EndsWith" or pure-Regx can be added in the next version.

But, surely that will take time.

Please file a workitem in the Issue Tracker (

--Suresh Bala