04-08-2015, 04:59 AM
Hi,
I’m new to QTP and regular expression. How do I write a regular expression so it can read the following?
Hello THere
hello THERE
HeLLO tHerE
herethere
HELLOTHERE
ABCDE
I’ve come up with the following, but this doesn’t take care of “HELLOTHERE” or “hellothere”?
[Hh][Ee][Ll]{2}[Oo]\s[Tt][Hh][Ee][Rr][Ee]
Any help will be appreciated. Is there a better way to write this?
Thanks
I’m new to QTP and regular expression. How do I write a regular expression so it can read the following?
Hello THere
hello THERE
HeLLO tHerE
herethere
HELLOTHERE
ABCDE
I’ve come up with the following, but this doesn’t take care of “HELLOTHERE” or “hellothere”?
[Hh][Ee][Ll]{2}[Oo]\s[Tt][Hh][Ee][Rr][Ee]
Any help will be appreciated. Is there a better way to write this?
Thanks