Results 1 to 9 of 9

Thread: RegExp: Alphanumeric and Hypen Only?

Threaded View

  1. #8
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Anyway I think this should do it...

    It does the complete opposite... MATCHES WHEN INVALID characters exist.

    Notice there is a space between 9 and _ in there.. I wasn't sure if you were allowing spaces or not, so if you're not, remove the space.
    Code:
    ([^a-zA-Z0-9 -])
    Last edited by nemaroller; Apr 19th, 2004 at 07:35 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width