Results 1 to 2 of 2

Thread: RegEx

  1. #1
    Join Date
    Oct 2003

    Unanswered: RegEx


    I need to compose the regular expression to detect one space between 2 words. Am I right doing that:

    ^[a-zA-Z]{1,} +[a-zA-Z]{1,}$


    Thanks in advance for any suggestions.
    Last edited by khibinite; 11-19-03 at 07:31.

  2. #2
    Join Date
    Jun 2003
    this looks fine to me (although it is always hard to "read" regex). However, this means that a word with a number in it would fail boyz2men or server1 or whatever.

Posting Permissions

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