Common Pattern:
0 matches found
//
Test String Input90 characters
Replace with:
Result: alex.dev@gmail.com
contact@enterprise.co.uk
invalid-email@
hello.world+test@sub.domain.org
Matches Breakdown (0)
No matches found in test string.
JS Code Snippet
// JavaScript RegEx
const pattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/g;
const text = `alex.dev@gmail.com
contact@enterprise.co.uk
invalid-email@
hello.world+test@sub....`;
const matches = text.match(pattern);
console.log('Matches:', matches);
const replaced = text.replace(pattern, '[$&]');
console.log('Replaced:', replaced);