Hi,
Can someone please explain why am I getting 545Moredonuts22 778 for results?
I should get anything starting with M (it can be 1 or 13 characters) then
space OR numbers(it can be 1 or 20).
I think I should get Moredonuts22
Moredonuts22 = String starting with M(1-13) character and then numbers
There's nothing in the MyString starting with M(1-13) character and then
space
Please explain [\s,0-9]{1,20} of the sSubString.
MyString = "MdonutsDOReceiving Exactly 545Moredonuts22 778"
sString = MyString
sSubString = "M[A-Za-z]{1,13}[\s,0-9]{1,20}"
Set objRE = New RegExp
objRE.Global = True
objRE.Pattern = sSubString
Set iText = objRE.Execute(sString)
For each match in iText
msgbox match.Value
Next
Thank You
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.