I have a user's forename and surname in the combination ‘Surname, Forename’ and I’d like to:
- Reverse this combination to ‘Forename Surname’ while removing the comma.
- Extract just the Forename.
I’ve tried some regular expressions found in searching online but these either return an empty value or ‘false’. I have no previous experience in regular expressions.
Any ideas?
Thank you.