TopDailyTools
Try these examples:
Regular expressions (regex) are powerful pattern-matching tools. When using the "Custom Pattern" option, you can create your own regex to extract specific text formats.
| Pattern | Description | Example |
|---|---|---|
\d | Any digit (0-9) | \d3 matches "123", "456" |
\w | Any word character (a-z, A-Z, 0-9, _) | \w+ matches "hello", "test123" |
\s | Any whitespace character | a\sb matches "a b" |
[ ] | Character class (any characters inside) | [aeiou] matches any vowel |
| | Alternation (OR) | cat|dog matches "cat" or "dog" |
* | Zero or more occurrences | a* matches "", "a", "aa", etc. |
+ | One or more occurrences | a+ matches "a", "aa", etc. |
? | Zero or one occurrence | colou?r matches "color" and "colour" |
{n} | Exactly n occurrences | \d3 matches exactly 3 digits |
\b | Word boundary | \bword\b matches whole word only |
| To Extract | Custom Pattern |
|---|---|
| 5-letter words | \b\w5\b |
| Product codes (ABC-12345) | [A-Z]3-\d5 |
| ISBN numbers | ISBN\s+\d5(-\d+)3 |
| US Dollar amounts | \$\d+(\.\d2)? |
| HTML tags | <[^>]+> |
Note: When using the custom pattern input, you don't need to add the forward slashes (/pattern/) or flags - just enter the pattern itself. The tool automatically applies the global flag to find all matches.
Extract email addresses from:
Extract URLs from:
Extract from social posts:
Extract from technical logs and docs: