I'm generating a XML file to make payments and I have a constraint for user's full names. That param only accept alphabet characters (a-ZAZ) + whitespaces to separe names and surnames.
I'm not able to filter this in a easy way, how can I build a regular expression or a filter to get my desireable output?
Example:
'Carmen López-Delina Santos'
must be 'Carmen LopezDelina Santos'
I need to transform vowels with decorations in single vowels as follows: á > a, à > a, â > a, and so on; and also remove special characters as dots, hyphens, etc.
Thanks!