Build, test, and debug regular expressions
This Java regex matches consecutive alphabetical characters that appear before an '@' symbol in an email address. By using a negated character class `[^\W\d_]+`, it specifically isolates letters while ignoring numbers, underscores, and special characters like dots. It relies on a positive lookahead `(?=.*@)` to ensure it only targets the local part of the email. This makes it highly effective for extracting first and last names from formats like `firstname.lastname@domain.com`.