How can I via preg_replace delete spaces between /
For example:
Comercial / Vendedor
to Comercial/Vendedor
Compras / Vendas
to Compras/Vendas
I want this because users always type the wrong one.
Here is the template I use to delete rows by email. What would be the expression to do what I want above?
function filterEmail($text) {
return preg_replace('/(.*)[a-z0-9\.\_\-]+@[a-z0-9\.\_\-]+\.[a-z]+(.*)/i','', $text);
}