Regular expression for URL validation

Discussion in 'Javascript' started by sangram, Dec 1, 2006.

  1. sangram

    sangram Guest

    Hi friends

    my question is

    i need a regular exp. for URL validation in java script
    sangram, Dec 1, 2006
    #1
    1. Advertising

  2. 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
    Thomas 'PointedEars' Lahn, Dec 8, 2006
    #2
    1. Advertising

  3. In comp.lang.javascript message <>,
    Sat, 9 Dec 2006 00:19:57, Thomas 'PointedEars' Lahn <>
    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.
    Dr J R Stockton, Dec 9, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark
    Replies:
    3
    Views:
    9,939
  2. VSK
    Replies:
    2
    Views:
    2,269
  3. Nazir
    Replies:
    3
    Views:
    5,049
    jayendra gadhavi
    Jan 2, 2008
  4. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    831
    Alan Moore
    Dec 2, 2005
  5. GIMME
    Replies:
    3
    Views:
    11,921
    vforvikash
    Dec 29, 2008
Loading...

Share This Page