-2
How to use the function preg_match()
to remove special characters and allow .
, @
and accents?
If it is not possible to do with this function, what other can I use to have the same result?
Example:
$exemplo1=preg_match("[expressão]" , '/*João Paulo/');
$exemplo2 = preg_match("[expressão]" , '[email protected]+');
$echo = $exemplo1 // João Paulo
echo = $exemplo2 // [email protected]
Could add an example of expected input and output?
– Costamilam
updated the question of a look pf
– Reignomo