SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: regex help

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    regex help

    hi,
    Please help me to buil a regex which accept only one space after a word
    i've tried:
    /^[\w]\s{1}/
    but it's not working.

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /^\w\s\S/
    Birnam wood is come to Dunsinane


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
  •