The following useful patterns can be used or adapted to your specific needs in GlobalSearch, GlobalCapture, or GlobalForms.
Name | Pattern | Example |
---|---|---|
US Date | (0?[1-9]|1[012])([/-])(0?[1-9]|[12]\d|3[01])\2(\d{4}) | “01/01/1997” “4/3/2010” |
US Phone | (?[0-9]{3})?\s?[0-9]{3}-[0-9]{4} | “203 789-0889” “(203) 789-0889” |
URL | (https?://)?([\da-z.-]+).([a-z.]{2,6})([/\w .-])/? | “www.square-9.com” |
USD Amount | $?[0-9]{1,3}(?:,?[0-9]{3})*.[0-9]{2} | “$100.98” “3,182.99” |