Micro Focus QTP (UFT) Forums
Help Required : In Understanding the regular expression - 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: Help Required : In Understanding the regular expression (/Thread-Help-Required-In-Understanding-the-regular-expression)



Help Required : In Understanding the regular expression - arescool - 08-15-2013

Hi All,
Please help me understand below Regular Expressions :
1. "[abc][1-4]*" -- How does this matches "a1234344"? , is it so that this string is considered as "a12-34-34-4" ? If yes how a group of characters , i.e. 34 considered together for matching ?

2. "[123]+" -- How does this matches "12" and "23" ?

3. "\d{2} -- will this match to "00 to 99" or "01 to 99", why ?