Safe words and dirty words

Published on Tue Mar 01 2022

This regex matches "bob" but does not match "abob", "bobb" or "cbobd" while it *does* match "cbob" and "bobd". Here "bob" is the dirty word and "abob", "bobb" and "cbobd" are safe phrases

Additional matching regexes for
Safe words and dirty words

Safe words and dirty words

This regex matches "bob" but does not match "abob", "bobb" or "cbobd" while it *does* match "cbob" and "bobd". Here "bob" is the dirty word and "abob", "bobb" and "cbobd" are safe phrases

Match 'words' with internal punctuation retained

Matches words without external punctuation but with internal punctuation.

Match all words starting with "a" not in a Tag

Match all words that are not in a tag. Non-matching < and > do not prevent matches. But fails to match terms between < and > if no intervening < or >

replace between brackets 3

replace multiple matches of words in brackets with no brackets

Brackets Items

This REGEX, allow extract all words in brackets [].

match x or y but not if z is present in a string

matches one or two words but excludes the string if a 3rd word is present

match sequential characters

HI, I'm looking for RegX to match words with more than two sequential characters

Simple Best URL Regex Match

# Best URL Regex to match URL, This is simple and can match 64K of url regex under 20ms ## Regex Matches All Below and more: - https://example.domain - http://example.domain - //example.domain - //example.com - https://example.com:34 - //example.com:23 - example.com

Full Best URL Regex Match

# Best Full URL Regex to match URL, This is simple and can match 64K of url regex under 77ms ## Regex Matches All Below and more: - https://example.domain - http://example.domain - //example.domain - //example.com - https://example.com:34 - //example.com:23 - example.com

Number Input That Supports Simple Math Expressions

RegEx matches: '5', '+5', '-5', '5+5', '-5+5', '+5+5', '5+9+7*-2' RegEx doesn't match: '5+', '5-', '5+9-', 'asdfasf5+5'