What is Regex?
A regular expression (regex) is a pattern language for matching, searching, and replacing text. Patterns are built from literal characters and metacharacters — quantifiers (*, +, ?), character classes ([a-z]), anchors (^, $), and groups ((...)) — that describe a set of matching strings rather than one exact string.
Example
^[\w.+-]+@[\w-]+(?:\.[\w-]+)+$ matches a basic email address shape, including user+tag@example.co.uk.
Related tool
Try it on ToolSphere — runs entirely in your browser, nothing is uploaded to a server.
Use the Text Diff & Compare to compare your sample text before and after an edit. For a related walkthrough, read Regular Expressions: Patterns and Matches.