Regular Expression To Match Non-numeric Strings
A Regular Expression to match a non-numeric string that is not composed entirely of numbers.
/(?!^\d+$)^.+$/g
A Regular Expression to match a non-numeric string that is not composed entirely of numbers.
/(?!^\d+$)^.+$/g
A regular expression to match non-blank and non-empty strings.
/(.|\s)*\S(.|\s)*/
A regular expression to get the text before the first separating character (like comma, space, etc).
/^([^,])+/g
A regular expression to match only alphabets and spaces.
/^[a-zA-Z ]*$/
A short Regular Expression that helps developers quickly extract and match a file extension from a string.
/\.[0-9a-z]+$/i
A regular expression to match hashtags (#) used in social media platforms.
/^#[^ [email protected]#$%^&*(),.?":{}|<>]*$/
A regular expression to validate Twitter username.
/(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9-_]+)/g
A useful regex pattern that matches a part of a string and ignores everything after a particular text.
/([^/]*)$/g
A regular expression to match valid filenames. Can be used to validate filenames entered by a user of an application, or the filename of files uploaded from a scanner.
/^[a-zA-Z0-9](?:[a-zA-Z0-9 ._-]*[a-zA-Z0-9])?\.[a-zA-Z0-9_-]+$/
A regular expression which can match anything except one or more words in a string. It is a handy one if you want to skip some words in your index file.
/^(?!regex$|pattern$).*/