Examples
- label_outlineMatch valid ipv4 addresses
let pat=/(([1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])/g;
- label_outlineMatch only numbers
let pat=/[0-9]+/g;
- label_outlineMatch only decimal numbers
let pat=/[0-9]+.[0-9]+/g;
- label_outlineMatch only words
let pat=/[a-z]+/ig;
- label_outlineMatch any number range (10-199)
let pat=/[1-9][0-9]|1[0-9]{2}/g;
- label_outlineMatch any string contains 8 or more characters with at least one uppercase letter
let pat=/(?=.*[A-Z]).{8,}/g;
- label_outlineMatch any email id
let pat=/[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}/ig;
- label_outlineMatch any string contains 8 or more characters with at least one number, and one uppercase and lowercase letter
let pat=/(?=.*d)(?=.*[a-z])(?=.*[A-Z]).{8,}/g;
- label_outlineMatch any string contains only uppercase and lowercase letter
let pat=/^[a-z]+$/i;
❮ Prev Reference