border image
logo border image







Your basket has: Total items: 0
Subtotal: $0.00




border image
 
corner image
corner image

Paste pattern and test value into respective fields.
click test button

regular expressions (test for match or replace)
pattern:
value:
replacement value:


Sample Regular Expression Patterns


ZIP
  • ZIP should of the pattern 5 digits(99999) or 5-4(99999-9999) pattern

    pattern = ^\d{5}$ or pattern = ^\d{5}-\d{4}$


  • SSN
  • SSN should be of the pattern 999-99-9999 Or 999999999

    pattern = ^\d{9}$ or pattern = ^\d{3}-\d{2}-\d{4}$


  • EMAIL
  • Email should be of the pattern name@domain.extension

    name, domain, or extension should be atleast 2 characters can have letters, periods, underscore or hyphen and should start with a character and cannot have special character at the end

    pattern = ^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$


  • IP
  • IP should be of the pattern 999.999.999.999, they can be from one character to max characters allowed

    pattern = ^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$


  • Return To Top



    corner image
    corner image