Results 1 to 11 of 11

Thread: [RESOLVED] Regular Expression Help Needed

Threaded View

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Resolved [RESOLVED] Regular Expression Help Needed

    Hey guys,

    I am in a need of a Regular Expression to restrict input to only certain characters in a text box. Any help would be gretly appreciated.

    The text box can only allow 0 or 1 "+" sign at the beginning and at no other position.
    The text box can only allow 0 or 1 ":" sign not before the "+" sign.
    The text box can allow any number of 0-9 digits.

    e.g.

    10 = GOOD
    +10 = GOOD
    +:10 = GOOD
    :10 = GOOD
    12:20 = GOOD
    +12:20 = GOOD

    No other characters allowed.

    Hope this makes sense.

    TA
    Last edited by wrack; Aug 18th, 2010 at 09:09 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