I want to validate name in my react native
application and I need
regex
for validating names
Valid names: Dr. John St. Peter's Invalid names: Dr.. John St.. Peters''s'.
Two special characters should not come side by side and only ' and . is allowed . Also name should not start with these special characters but can end with a . not with '
Below is the regex
I am using but it takes any no of ' and . side by side
/[!0-9@#$%^&*()_+\-=\[\]{};':"\\|,<>\/?]/