Regular Expressions
|
|||
|
Rank: ? (4278)
Member #: 5260 |
I am trying to make a form, but get problem trying to validating the inputs, and having trouble with formatting or using regular expressions.
If I want to format for mobile phone in the text field, how would I do so with an example below? eg. 0400 123 123 Or normal phone line? eg. (08) 1234 5678 And formatting for email? And if I want only text in text field, how do I achieve that? (so no number and no funny characters) » Post edited 2006-06-05, 02:06pm by storyteller.
Dreams are stories, but my life is just one bad dream. :P
|
||
|
|||
|
|||
|
Rank: ? (4278)
Member #: 5260 |
Hello anyone there????
Dreams are stories, but my life is just one bad dream. :P
|
||
|
|||
|
|||
|
Rank: ? (1045)
Member #: 2150 |
http://regexlib.com/default.aspx
http://www.cuneytyilmaz.com/prog/jrx/ http://www.zend.com/zend/spotlight/code-gallery-wade5.php Regexlib is a database of useful regular expressions, i'm sure you can find what you need there. The second link is a handy tool to check an expression with stuff you type in. And the third is a regexp for php tutorial as a bonus.
"Your coding is godly, Mav. Stop watching porn and do something with your life!" -.- (Farley)
|
||
|
|||
|
|||
|
Rank: ? (4278)
Member #: 5260 |
Thank you, Mav. I'll try it out.
Dreams are stories, but my life is just one bad dream. :P
|
||
|
|||
|
|||
|
Rank: ? (4540)
Member #: 51 |
well done, mav
|
||
|
Please login or register to post a reply.