im using ereg
is there anyway to stay along the lines of the original formatting
$pattern ="^[a-zA-Z][0-9][a-zA-Z][0-9][a-zA-Z][0-9]";
just add in a couple things?
thanks for the help
Search found 3 matches
- Thu Aug 05, 2004 2:36 pm
- Forum: PHP - Code
- Topic: PHP and regular expression help
- Replies: 7
- Views: 1087
- Thu Aug 05, 2004 2:01 pm
- Forum: PHP - Code
- Topic: PHP and regular expression help
- Replies: 7
- Views: 1087
thanks
thanks for the help, the articles really help and I can definately see how that program comes in helpful. Im just really new at regular expressions. im trying to validate a postal code i.e. N2R5A9 but I want to be able to have optional spaces and dashes for example N2R5A9 N2R-5A9 N2R 5A9 should all ...
- Thu Aug 05, 2004 12:39 pm
- Forum: PHP - Code
- Topic: PHP and regular expression help
- Replies: 7
- Views: 1087
PHP and regular expression help
Hello, Im extremely new to the world of regular expressions and need to create one for a 10 digit phone number that can have spaces dashes and brackets and a postal code that can have 6 characters and be seperated with paces or dashes. does anyone have a good site to read up on regular expressions o...