|
Posted by John Dunlop on 10/25/22 11:22
Somebody wrote:
> $entry = preg_replace ( "/^\s+/" , '' , $entry);
> $entry = preg_replace ( "/\s+$/" , '' , $entry);
>
> $entry = trim ($entry);
Do you use both preg_replace() and trim()?
> $OK_CHARS_TEXT = '/[^-a-zA-Z0-9_.@(), ]/';
What kind of form data do you apply such a restrictive
expression to? (It would muck up my last sentence, and this
one too!)
--
Jock
Navigation:
[Reply to this message]
|