Skip to main content

Regex String Manipulator

Use regular expressions to match strings

Intro#

A regular expression (shortened as regex) is a sequence of characters that specifies a search pattern. A common use for regex is to match strings or parts of strings in order to do something with the result. For example, the default expression of a+ will return all instances of the letters a found within the input string. So the string Cavarly would output aa because the word Cavalry has two as.

UI#

Regex - enter your regular expression.

Examples:

StringRegexResult
Hello World.\sHelloWorld.
As Capably as Cavalry.C.....yCapablyCavalry
Is it Colour or Color?Colou?rColourColor
3 is the magic number.\d3

More examples can be found on Regex101 (bottom right of page).