A little regex help?

Discussion in 'Javascript' started by Ivan Marsh, Mar 27, 2007.

  1. Ivan Marsh

    Ivan Marsh Guest

    Ivan Marsh, Mar 27, 2007
    #1
    1. Advertising

  2. Ivan Marsh

    Aaron Guest

    On Mar 27, 12:33 pm, Ivan Marsh <> wrote:
    > Man I suck at regex.
    >
    > How do I write a regex that matcheshttp://att.comandhttp://www.att.com
    > but doesn't matchhttp://matt.comorhttp://www.bratt.com?
    >
    > I'm trying to create a whitelist but I keep ending up with sites I don't
    > want matching my criteria.
    >
    > I just can't seem to get my head around it.
    >
    > Any help would be appreciated.


    check out the following site. It helped me out a lot.
    http://www.anaesthetist.com/mnm/perl/regex.htm
     
    Aaron, Mar 27, 2007
    #2
    1. Advertising

  3. scripts.contact, Mar 27, 2007
    #3
  4. Ivan Marsh

    anthony Guest

    anthony, Mar 30, 2007
    #4
    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. Ivan Marsh

    A little regex help?

    Ivan Marsh, Jul 3, 2003, in forum: Perl
    Replies:
    1
    Views:
    1,739
    JamesW
    Jul 4, 2003
  2. ThaDoctor
    Replies:
    3
    Views:
    403
    Alan Woodland
    Sep 28, 2007
  3. Replies:
    3
    Views:
    809
    Reedick, Andrew
    Jul 1, 2008
  4. Replies:
    0
    Views:
    152
  5. Daniel
    Replies:
    1
    Views:
    223
    Bart van Ingen Schenau
    Jul 9, 2013
Loading...

Share This Page