My number format as shown in the below:
1. 775645645 (9 digits)
2. 0775645645 (10 digits)
3. +94775645645
The numbers can start with 7 or 0 or +94.
So I tried it with regex pattern in HTML text input as shown in the below:
<input type="text" name="mobile" class="form-control" pattern ="(?:7|0|(?:\+94))[0-9]{9,10}$" required />
But this pattern is not working for me. Appreciate your help.
UPDATE:
Here Im using jQuery validate to validate a front end form.