I want to remove all strings that are like this: “REP_HSC_QUALIFIED” using the following expression, but somehow it is not working. Can somebody help in pointing out my mistake (I rarely use regular expressions, so I do not have good understanding of it).
preg_replace('#REP[a-zA-Z0-9_]+#', '-', $data);
you propably want to do