Free2Code
 
Time: 2008-11-21, 07:55pm
Regular Expressions
Subject: Regular Expressions  ·  Posted: 2006-06-04, 01:18pm
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
 
  Reply to this ·  Post link ·  Top
Subject: Re: Regular Expressions  ·  Posted: 2006-06-05, 02:07pm
Rank: ? (4278)
Member #: 5260
Hello anyone there????

Dreams are stories, but my life is just one bad dream. :P
 
  Reply to this ·  Post link ·  Top
Subject: Re: Regular Expressions  ·  Posted: 2006-06-05, 02:18pm
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)
 
  Reply to this ·  Post link ·  Top
Subject: Re: Regular Expressions  ·  Posted: 2006-06-05, 07:20pm
Rank: ? (4278)
Member #: 5260
Thank you, Mav. I'll try it out.

Dreams are stories, but my life is just one bad dream. :P
 
  Reply to this ·  Post link ·  Top
Subject: hmmm  ·  Posted: 2006-10-07, 10:19pm
Rank: ? (4540)
Member #: 51
well done, mav

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons