|
-
Aug 18th, 2010, 12:38 AM
#1
Thread Starter
^:^...ANGEL...^:^
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|