By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,685 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,685 IT Pros & Developers. It's quick & easy.

Regular expression for URL validation

P: n/a
Hi friends

my question is

i need a regular exp. for URL validation in java script

Dec 1 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
sangram wrote:
my question is

i need a regular exp. for URL validation in java script
That is *not* a question, it is a demand (rather not welcome here). And the
language is called _JavaScript_.

Anyway, try the RegExp given in RFC3986 (URIs), Appendix B, for a start:

http://www.rfc-editor.org/rfc/rfc3986.txt

However, there has been posted at least one more URL-specific RegExp for
that purpose here already, at least by me. Google is your friend. And
maybe it is even in the FAQ by now.
PointedEars
Dec 8 '06 #2

P: n/a
In comp.lang.javascript message <12****************@PointedEars.de>,
Sat, 9 Dec 2006 00:19:57, Thomas 'PointedEars' Lahn <Po*********@web.de>
wrote:
>sangram wrote:
>my question is

i need a regular exp. for URL validation in java script

That is *not* a question, it is a demand (rather not welcome here). And the
language is called _JavaScript_.
Hunnish bully-boys are unwelcome here; and everywhere else.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQqish topics, acronyms & links;
Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Dec 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.