does anybody know how to validate a CLAM address with PHP?
This works... using the regex from Nixsy:
$regex = "/^[x][a-km-zA-HJ-NP-Z0-9]{26,33}$/";
if (preg_match($regex, "xWEWfhF9hDvKksvWgFj6kmseLYShZG9Kx8")) {
// match success
echo "Found a match!";
} else {
// If preg_match() returns false, then the regex does not
// match the string
echo "The regex pattern does not match. :(";
}
I Have saved this to my snippets folder, Thanks dude.