Regex s modifier, not working?
<p>Okay, I am a noob to regex, and I am using this site for my regex primer:</p>

<p>Question: using the s modifier, the  code below is suppose to echo 4 as it has found 4 newline characters.</p>

<p>However, when I run this I get one(1), why?</p>

<p><a href="http:///www.phpro.org/tutorials/Introduction-to-PHP-Regex.html#1" rel="nofollow">link text</a></p>

<pre><code> &lt;?php
 /*** create a string with new line characters ***/
    $string = 'sex'."\n".'at'."\n".'noon'."\n".'taxes'."\n";

    /*** look for a match using s modifier ***/
    echo preg_match("/sex.at.noon/s", $string, $matches);

    /*The above code will echo 4 as it has found 4 newline characters.*/

?&gt;
</code></pre>
