RE: [PHP] ereg
| From: | Richard Heyes | Date: | Thu, 10 Aug 2000 15:42:50 +0000 |
| Subject: | RE: [PHP] ereg | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11163@lists.php.net to get a copy of this message | ||
> How do you search for a linefeed in a regular expression?
> I tried '\\n' but it did not work.
if(ereg(chr(10), $string)){
// blah...
}
HTH
--
Richard Heyes
http://www.heyes-computing.net/scripts/
Plain text email only please!