Why does my regex work here but not in Python or SQL?
This tester uses JavaScript regular expressions. Other engines can interpret flags, boundaries, and lookbehind differently, so verify the pattern in the environment that will actually run it.
Runs in your browser. No file uploads for processing. Privacy details
Test JavaScript regular expressions against sample text.
Loading tool...
Test JavaScript regular expressions against sample text.
Add the requested input or choose the options you want to use.
Verify results in the environment that will consume them.
The tool processes inputs in your browser. File processing and site analytics are separate.
Pattern: \b\w+@\w+\.com\b
Matched email tokens with index positions
This tester uses JavaScript regular expressions. Other engines can interpret flags, boundaries, and lookbehind differently, so verify the pattern in the environment that will actually run it.
Your browser processes your inputs on your device.
Text input limit: 500,000 characters.