What is Regex?
Regex, or regular expressions, are sequences of characters that define a search pattern. They are commonly used for string matching and manipulation. For example, to find all digits in a string, you can use the regex \d
.
How to Use This Website
This tool allows you to build regex patterns using a drag-and-drop interface. Follow these steps:
- Drag and drop the boxes below to the target area to form regex patterns.
- You can add custom text or characters by entering them in the input box and clicking "Add".
- Double-click on an item in the target area to remove it.
- The regex pattern will be displayed below the target area as you build it.
Any Numbers
Any
Any Lowercase Letters
Any Uppercase Letters
Whitespace
Any Word Character
Any Non-Word Character
Any Non-Digit
Not Specific Left Characters
Make Left Character Repeated at Least Once
Make Left Character Repeated Any Times
Make Left Character Optional
Exact Number of Characters (a{n})
Character Range (a-z0-9)