Regex To Determine If A String Has All Unique Characters
A regular expression that determines if a given string has all unique (none repeating) characters.
/^(?:([A-Za-z])(?!.*\1))*$/g
A regular expression that determines if a given string has all unique (none repeating) characters.
/^(?:([A-Za-z])(?!.*\1))*$/g
A regular expression that matches the various names of the days of the week.
/\b(?:Tue(?:sday)?|Wed(?:nesday)?|Thu(?:rsday)?|Sat(?:urday)?|(Mon|Fri|Sun)(?:day)?)/gi
A regular expression to extract a domain name or subdomain (with a protocol like HTTPS, HTTP) from a given URL.
/^(?:https?:\/\/)?(?:[^@\/\n][email protected])?(?:www\.)?([^:\/?\n]+)/
A regular expression that matches month names. Supports both full month names and 3-letter abbreviations.
/\b(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|(Nov|Dec)(?:ember)?)/g
A regular expression that matches multiple Email addresses separated by semicolons in a string.
/(([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)(\s*;\s*|\s*$))*/g
A regular expression to match one URL parameter in query strings. Can be used to filter requests on a specific parameter from the query string.
/&foo(\=[^&]*)?(?=&|$)|^foo(\=[^&]*)?(&|$)/
A regular expression to match repeating digits in a given number.
/([0-9])\1+/g
A regular expression to extract the filename from a given path.
/[ \w-]+\./g
A quick regular expression that matches all content before an underscore(_) in a string.
/^[^_]*_/g
A quick regular expression to match and validate the Credit Card’s CVV numbers.
/^[0-9]{3,4}$/