Regex Helper Tool
Transform text using regular expressions with built-in patterns or create your own
Input
(⌘1 to focus)Output
(⌘2 to focus)Select a pattern or enter custom regex above
Use ⌘K to find patterns
Select a pattern or enter custom regex above
Use ⌘K to find patterns
Transformation Patterns
Discover regex patterns for text transformation - refreshed on each page load to help you find new tools.
Path: Dot to Slash
Transform dot notation import paths to slash notation - perfect for converting Python imports to file paths or switching between different module systems
app.services.user
app/services/user
Extract Email Addresses
Find and extract all email addresses from any text content - ideal for data analysis, contact list building, or content scraping
Contact john.doe@example.com or jane@test.co.uk for support.
john.doe@example.com
jane@test.co.uk
Extract URLs
Quickly extract all HTTP and HTTPS URLs from any text - perfect for analyzing content, gathering links, or cleaning up documentation
Visit https://example.com and https://test.com for more information.
https://example.com
https://test.com
Newline to Comma
Transform line-by-line lists into comma-separated format - ideal for creating CSV data, function parameters, or compact data representations
apple
banana
cherry
date
apple, banana, cherry, date
Add Quotes to Lines
Wrap every line with double quotes - essential for converting plain text lists to string arrays, JSON data, or code snippets
apple
banana
cherry
"apple"
"banana"
"cherry"
Path: Slash to Dot
Transform file paths to dot notation imports - essential for converting directory structures to Python import statements or module references
app/services/user
app.services.user
Need a different transformation? Use the command palette above or browse all patterns.
Manage Patterns
Pattern Management
Import Patterns
Export Patterns
About Regex Helper
The Regex Helper Tool allows you to transform text using regular expressions. It comes with a set of built-in patterns for common transformations, and you can create your own custom patterns.
Features
- Built-in patterns for common transformations
- Create and save your own custom patterns
- Import and export patterns to share with others
- Keyboard shortcuts for efficient workflow
- Command palette for quick pattern search (⌘K)
How to Use
- Select a pattern from the list or search using the command palette (⌘K)
- Enter your text in the input area
- Click "Transform" or press ⌘+Enter to apply the transformation
- Copy the result from the output area
Creating Custom Patterns
You can create your own custom patterns by clicking the "Create Pattern" button. Each pattern consists of:
- Name: A descriptive name for the pattern
- Description: A brief explanation of what the pattern does
- Search Regex: The regular expression pattern to search for
- Replace Regex: The replacement pattern
- Example: An example input and expected output