Regex issue in PHP: DB vs String

BRILLIANT ! It would not have occurred to me to do that.