Why isn't my regex working? From everything that I've read, it should be...
<script language="php">
$string = "[joebob]";
if( preg_match( '/\[(\s+)\]/i', $string, $aMatches )) {
print_r( $aMatches );
} else {
echo 'No match was found' . "\n\n";
}
</script>
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

