PHP code snippet – How to remove words in contain integer ?
$input = "H3llo This is a? #test e3ample of a sentence-word bl&h."; echo preg_replace('/(?=[^ ]*[^A-Za-z \'-])([^ ]*)(?:\\s+|$)/', '', $input); This is of a sentence-word
$input = "H3llo This is a? #test e3ample of a sentence-word bl&h."; echo preg_replace('/(?=[^ ]*[^A-Za-z \'-])([^ ]*)(?:\\s+|$)/', '', $input); This is of a sentence-word