For testing Regular Expressions visit regexr.com website . It is an online tool.
Email Validation:
sample: google@gmail.com
/[a-zA-Z0-9_\-\.]+[@][a-z]+[\.][a-z]{2,3}/
Bangladeshi Mobile Phone Validation:
sample: 8801412345678
/(\+88|88)(01)[3|4|5|6|7|8|9]{1}[0-9]{8}/
Facebook id Validation:
sample: https://www.facebook.com/zuck
/(https:)?\/\/?(www\.)?facebook\.com\/[a-zA-Z0-9\.]*/
Top comments (0)