Micro Focus QTP (UFT) Forums
"Or" (|) does not work in Regex, using childObjects?? - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: "Or" (|) does not work in Regex, using childObjects?? (/Thread-Or-does-not-work-in-Regex-using-childObjects)



"Or" (|) does not work in Regex, using childObjects?? - ConstantChange - 10-08-2008

Hi!

Can somebody tell me, why this regular expression (used for "html id" in a description object)..

.*col_.*

returns 10 objects, and this one

.*RowGroup.*Column|.*col_.*

, on the same page returns 0 (ZERO)?

Do I get it right, that QTP supports a different kind of regular expression when using .childObjects(..)? One that does not support an "or" (|)????


Thanks very much for your help!
Cheers,
CC