03-03-2010, 08:28 AM
I have to handle city names using regex
This piece of code works for single word city names
like Boston,Austin
--working for single word city
If I have city names with 2 words or with . it blows up.
Norfolk-Virginia Beach
Tampa-St. Petersburg
Bergen-Passaic
Riverside-San Bernardino
Orange county
Please some one help me with this how to write for the above mentioned cities.
This piece of code works for single word city names
like Boston,Austin
--working for single word city
Code:
Browser("Hotels").Page("Hotels").Link("text:=Hotels in .*").Click
If I have city names with 2 words or with . it blows up.
Norfolk-Virginia Beach
Tampa-St. Petersburg
Bergen-Passaic
Riverside-San Bernardino
Orange county
Please some one help me with this how to write for the above mentioned cities.
Code:
Browser("Hotels").Page("Hotels").Link("text:=Hotels in .*").Click