SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: a regexp

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a regexp

    What will be the regexp for the expressions of the type: value="afr34sdf-234234faf-sfsfsdf-sssdf33"

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you need to provide more info. are you trying to validate the html? are you trying to validate the value the browser sends to your webserver when you submit this as a form?

    get detailed. tell us what is and isnt allowed. provide examples.

  3. #3
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Code:
    /[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+/
    Saul


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
  •