java window titles & 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: java window titles & regular expressions (/Thread-java-window-titles-regular-expressions) |
java window titles & regular expressions - jotdog2 - 03-09-2011 Here is regular expression I would like to use: "^one two / .*three four$" but it does not work. To match the following one two / three four one two / five six / three four one two / five six / seven eight / three four The middle text can be any combo of letters, numbers or special characters. The best regular expression I can match is: "^one two / .*" Any suggestions? Thanks, jotdog2 RE: java window titles & regular expressions - madsenfr - 02-13-2012 I'm usin QTP 9.5 and I encouter a strange problem : I can not use regular expression on JavaWindow title. I've already used regex on OracleFormWindow and it works, but not on JavaWindow. It's not a regex mistake, I looked closely, and I also just check the box regular expression without really using any one, and it doesn't work. Does anyone know why, or can suggest a workaround ? |