Gravitywell Regex
Library of commonly used Regular Expressions
Usage
import { <REGEX_NAME_HERE> } from "@gravitywelluk/regex";
Table of Contents
Email regex
globalEmailRegex
Regex for a global email address conner.o'brian@example.com
import { globalEmailRegex } from "@gravitywelluk/regex";
Phone number regex
phoneInternationalE164Regex
Regex for an international (E.164) phone number +14155552671
import { phoneInternationalE164Regex } from "@gravitywelluk/regex";
phoneUkBasedRegex
Regex for a UK based phone number +447847584310
or 07847584310
import { phoneUkBasedRegex } from "@gravitywelluk/regex";