SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    regular expresion problem

    I use a validation framework from forms and I nees to create a regular expresion that checks if a string has 2 times the
    .
    .
    How can I do that?
    I want something like this
    Code:
    ([0-9a-z\-]{2,255}(\.([a-z]{1,6}))

  2. #2
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use this and I want also to use this requral expression ([0-9a-z\-]{1,255}\.)*[0-9a-z\-]{1,255}\.[a-z]{2,6} .
    So I write
    Code:
    class=" validate-custom ([0-9a-z\-]{1,255}\.)*[0-9a-z\-]{1,255}\.[a-z]{2,6}"
    but it does not work.
    What is wrong?

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not really sure what you're asking for. Could you try to start over and be a bit more detailed, and maybe provide examples?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •