Examples

  • label_outline
    Match 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_outline
    Match only numbers
    let pat=/[0-9]+/g;
  • label_outline
    Match only decimal numbers
    let pat=/[0-9]+.[0-9]+/g;
  • label_outline
    Match only words
    let pat=/[a-z]+/ig;
  • label_outline
    Match any number range (10-199)
    let pat=/[1-9][0-9]|1[0-9]{2}/g;
  • label_outline
    Match any string contains 8 or more characters with at least one uppercase letter
    let pat=/(?=.*[A-Z]).{8,}/g;
  • label_outline
    Match any email id
    let pat=/[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}/ig;
  • label_outline
    Match 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_outline
    Match any string contains only uppercase and lowercase letter
    let pat=/^[a-z]+$/i;
❮ Prev Reference
TryOut Examples"Learn to Explore..!"

TryOut Editor

receipt