Forum Discussion

bloodycritic's avatar
bloodycritic
New Contributor
11 years ago

Regular Expression for a mulitple instance

I am automating a windows application which has multiple instance problem so the object property always have a dynamic identifier



Sys.Process("CANARA_EXPORT", 4).WinFormsObject("Frmlogin").WinFormsObject("GroupBox1").WinFormsObject("Label1")



("CANARA_EXPORT",4) is dynamic

it changes to ("CANARA_EXPORT",5) or any other no.



Pls get me a regular expression code or syntax for this issue

2 Replies

  • Ravik's avatar
    Ravik
    Super Contributor

    You can get the more information on below link -

    http://www.regular-expressions.info/vbscriptexample.html

    Refer below code

    Sub Test
      Set re = New RegExp
      re.Pattern = ("[a-z]*")
      If re.Test("[a-z]*")  Then
        msgbox "Successful match"
          Else
        msgbox "No match"
      End If
    End Sub