Can i use regex on TextInput::stripCharacters method?

I have one input masked as '(99) 99999-9999' and i want remove all non numbers characters
No description
4 Replies
Bruno
Bruno4mo ago
Try this:

TextInput::make('phone')
->label('Número de telefone')
->mask('+55 '.'(99) 99999-9999'),

TextInput::make('phone')
->label('Número de telefone')
->mask('+55 '.'(99) 99999-9999'),
Marcos Ferreira
Marcos FerreiraOP4mo ago
the values are coming like this on mutateFormDataBeforeCreate method
No description
Marcos Ferreira
Marcos FerreiraOP4mo ago
@Leandro Ferreira this worked! ty!
No description

Did you find this page helpful?