Text
Regex Tester
Test and debug regular expressions with match highlighting.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type Regex Tester and press Return.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Test, or ⌘↵.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
What to enter
Enter pattern on first line, then test string(s)... Example: \d+ There are 42 apples and 7 oranges
Options
| Option | Values | Default |
|---|---|---|
| Case insensitive (i)Ignore case when matching | On or off | Off |
| Multiline (m)^ and $ match line start/end | On or off | Off |
| Dot matches newlines (s). matches newline characters | On or off | Off |
| Show capture groupsDisplay captured groups | On or off | On |
| Replacement stringUse $1, $2, etc. for groups | Text (e.g. Empty = match only) | — |
Example
Real output from Devly, with the default options.
Input
[\w.]+@[\w.]+\.\w+ Contact hello@devly.app or support@example.com for help.
Matches found
2
Pattern
[\w.]+@[\w.]+\.\w+
Match 1
"hello@devly.app" at 8-23
Match 2
"support@example.com" at 27-46
Highlighted
Contact 【hello@devly.app】 or 【support@example.com】 for help.
From Terminal
With the free command-line tool installed:
Terminal
devly regex --path input.txt # or pipe text in pbpaste | devly regex
Quick Switch also finds it by: regex, regular, expression, pattern, match, search, replace.
More Text tools
String CaseConvert text between camelCase, snake_case, kebab-case, and moreRegex LibraryBrowse and copy common regex patternsString DiffCompare two strings and show differencesLine SorterSort, shuffle, dedupe, and manipulate text linesText StatisticsAnalyze text for word count, character frequency, and readabilityString EscapeEscape and unescape strings for various languages