Re: question of REGEXP Pattern Modifiers
| From: | Ns_Andy | Date: | Tue, 22 Oct 2002 15:15:27 +0000 |
| Subject: | Re: question of REGEXP Pattern Modifiers | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120923@lists.php.net to get a copy of this message | ||
$str = "I\n am a\n boy";
if(preg_match("/I am a boy/", $str))
print("matched");
the thing I know is $str must be three or more lines,
How can I simply test a string even if there is a line feed
(matched will be printed in this case)