Possible Duplicates:
PHP validation/regex for URL
PHP regex for validating a URL
I am using
(((?:http|https):\/\/[a-zA-Z0-9\/\?=_#&%~-]+(\.[a-zA-Z0-9\/\?=_#&%~-]+)+)|(www(\.[a-zA-Z0-9\/\?=_#&%~-]+){2,}))
to validate URL in my script.
But my friend told me there is a problem with this URL:
http://www.example.com/example(200)aaaa.rar
How can I add "(
" and ")
" to my regexp statement?
Are there another characters should I put in my regexp?