Help me about 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 me about regular expression (/Thread-Help-me-about-regular-expression) |
Help me about regular expression - mmkaew - 06-09-2009 Can anyone help me to write the regular expression for EB0052 : Contact First Name must be not number. sometime it change EB0274 : Contact First Name have not contain. Thank You. RE: Help me about regular expression - Ankur - 06-09-2009 Code: EB[0-9][0-9][0-9][0-9] : Contact First Name.* RE: Help me about regular expression - mmkaew - 06-09-2009 Thank you.It's work. But i found sentence change again EB0044 : ID Card Number is Invalid<<< I use EB[0-9][0-9][0-9][0-9] : (+\w) but not work RE: Help me about regular expression - Tarik Sheth - 06-09-2009 Hi, Just check if you have used caps W otherwise it should work. Try this reg ex. \s is for spaces in the sentence. Code: EB[0-9][0-9][0-9][0-9] : (+\w)\s(+\w)\s(+\w)\s(+\w)\s(+\w) |