I have a form
on my website with a mobile telephone number input
.
I am using validation that allows the user to either enter:
a: 0 7725 878 811
b: +44 7725 878 811
I would like to remove the first 0 or +44 when submitting the form
so that the value that ends up in the database is simply 7725 878 811
What would be the best way to go about this?
Different to marked as duplicate as it is not validation I have an issue with, it is with cleaning the value upon submit