Results 1 to 3 of 3
Thread: regex for this ??
Jun 5, 2007, 20:52 #1
regex for this ??
I would like to know the regex for the following:
input text can containalphanumeric characters along with underscore and space
i used the following:
Thanks in advance to all of you
Jun 5, 2007, 21:41 #2
trim the value of whitespace before taking it.
$input = trim($input);
if it is just a space the $input will be empty ($input == '')Logic without the fatal effects.
All code snippets are licensed under WTFPL.
Jun 6, 2007, 01:25 #3Originally Posted by PHPychoNever ascribe to malice,
that which can be explained by incompetence.
Your code should not look unmaintainable, just be that way.