1
Answer

Regular Expression for URL

Photo of Cien S

Cien S

15y
2.6k
1
Hi,

I am using a Regular Expression "([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" to validate URL. But when i enter website in textBox as ww.gmail.com then its not give error message. There is any Regular Expression that validate only and only "www.gmail.com" otherwise show error message.

Please help me

Thanks

Pankaj

Answers (1)