Computer Science Canada Regular expression problem... |
Author: | Amailer [ Fri Feb 04, 2005 11:28 am ] |
Post subject: | Regular expression problem... |
Hey all, Anyone know how to make it so that... the script uses regular expression to make sure the string only allows letters, numbers and hypens, nothign else. Anyone know how to do that? Thanks. |
Author: | Tony [ Fri Feb 04, 2005 1:19 pm ] |
Post subject: | |
how do I use RegEx in PHP? (as in syntax to make scan/match/etc) |
Author: | wtd [ Fri Feb 04, 2005 2:36 pm ] |
Post subject: | |
http://ca3.php.net/manual-lookup.php?pattern=preg |
Author: | Tony [ Fri Feb 04, 2005 2:42 pm ] |
Post subject: | |
hmm... apparently it's http://ca.php.net/manual/en/function.preg-match.php |
Author: | wtd [ Fri Feb 04, 2005 6:33 pm ] |
Post subject: | |
You've seen regular expressions in Ruby, so do your best not to be sick over how you have to interact with them in PHP. |
Author: | Tony [ Sat Feb 05, 2005 5:16 pm ] |
Post subject: | |
haha, yes Ruby's RegEx's is by far better |