Sorry for the late reply, simply do.
I've changed it from \w+ because that also includes numbers and underscores, but with this new one it'll only work with A-Z, a-z, and apostrophes.Code:preg_match("#^([A-Z']+)$#i", $string, $matches)
Printable View
Sorry for the late reply, simply do.
I've changed it from \w+ because that also includes numbers and underscores, but with this new one it'll only work with A-Z, a-z, and apostrophes.Code:preg_match("#^([A-Z']+)$#i", $string, $matches)
You're a legend ;)
By the way, the overall project is here: http://www.reviewdude.co.uk/tlw/