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.userapp/services/userCamelCase to kebab-case
Transform camelCase variable names to kebab-case for CSS classes, HTML attributes, or URL-friendly formats - essential for frontend developers
myVariableNamemy-variable-nameCamelCase to snake_case
Transform camelCase JavaScript variables to snake_case for Python, Ruby, or database column names - perfect for cross-language development
myVariableNamemy_variable_nameExtract 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
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
Comma to Newline
Transform comma-separated lists into clean line-by-line format - perfect for converting CSV data to readable lists or preparing data for processing
apple, banana, cherry, dateapple
banana
cherry
dateNeed 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