Need php function. After processing the line, leave only the following characters:

ABCDEFabcdef0123456789# 
  • $ test = preg_replace ("/ [^ A-Fa-f0-9 #] /", '', $ test); - Andrey

1 answer 1

 $test = preg_replace("/[^A-Fa-f0-9#]/", '', $test); 
  • Although, you in the question of characters mixed up in places. - Visman 4:39 pm