@ Jinnah,
You can not simply compare the regular expression using conditional statement.
Let me explain it to you.
Below are the basic steps that you need to follow.
1. You need to create an object of VbScript.RegExp
2. Assign the pattern you want to test.
3. Pass your string and check the result. It only returns true/False for successful/Unsuccessful results.
Let me give you one example.
Let me know if you need more help.
Regards,
Ankesh
You can not simply compare the regular expression using conditional statement.
Let me explain it to you.
Below are the basic steps that you need to follow.
1. You need to create an object of VbScript.RegExp
2. Assign the pattern you want to test.
3. Pass your string and check the result. It only returns true/False for successful/Unsuccessful results.
Let me give you one example.
Code:
Set RegEx = CreateObject("VBScript.RegExp")
RegEx.Pattern = "#[0-9]+" //This is the pattern tht you need to write, here it is for "#8"
blnResult=RegEx.Test(strText) ' str text is the string that you want to check. as per your example here it is #8
If blnResult=True Then
'Pass
' Your reporter event
Else
'Fail
'Your reporter
End If
Set RegEx=Nothing
Let me know if you need more help.
Regards,
Ankesh