Re: Regular expression help
| From: | Matthias Nothhaft | Date: | Tue, 25 Nov 2003 21:29:08 +0000 |
| Subject: | Re: Regular expression help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170944@lists.php.net to get a copy of this message | ||
Hi,
^ inside [] means "not the following chars", so your expression means:
if ($val contains no space " ", no tab "\t" and no newline "\n") {
//do the job ...
}
Regards,
Matthias
Ben wrote:
I need someone to tell me exactly what this regular-expression means: if(ereg("[^ \t\n]",$val)) {// do the job here} I'm looking for an intermittent bug, and I need to understand this to make sure I have found the bug. Thanks