OK, I'm beginning to think that my fundamentals on PCRE are flawed (bear with me).
If I pass a string to preg_match() with an if statement like so:
<?
if( preg_match("/[a-z]{1,3}/i","tumultuous" ) ) {
echo("yep.");
}
else {
echo("nope.");
}
?>
I would think that the statement would be false and echo "nope" because the string contains more than 3 "a-z" characters (hence the {1,3}). I tried submatching, but couldn't get this to work.
I also tried sending it a string like "aaaa" to see if maybe it would fail at matching more than three instances of ONE a-z character.
Anyone?