Forum Moderators: coopster
I'm using this code to test.
if (preg_match("([a-zA-Z-]+)", "abc")) {
echo "A match was found.";
} else {
echo "A match was not found.";
}
which finds a match but it also finds a match with.
if (preg_match("([a-zA-Z-]+)", "abc123")) {
echo "A match was found.";
} else {
echo "A match was not found.";
}
Which i don't want it to.
Cheers