Micro Focus QTP (UFT) Forums
Regular Expressions - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Regular Expressions (/Thread-Regular-Expressions--1243)



Regular Expressions - MR21135 - 11-07-2008

Hi,
How can you check for a space in n length word. I need to check a space at 3rd letter in a n length word using regular expressions.
Correct me if i am wrong... Shall i use
oRegExp.Pattern = "../s.*" ???


RE: Regular Expressions - stevol - 11-12-2008

Hi,
can you use this?
If Right(Left(word),3),1)=" " Then ...


RE: Regular Expressions - VENKATAREDDY_M - 02-03-2009

Hi

Pls use below regular Expression.

^[a-z]{2}\s[a-z]*

make sure RegExObj.IgnoreCase = True

Thanks
VENKATA