Here is the regex for you.

$company_domain = '\w+'; // replace with your own company domain pattern.
$user_name = '\w+'; // replace with your own username pattern
$email_domain = '\w+\.\w{2,4}'; // google for standard domain name
regex pattern and replace it.

$regexp = 

preg_match($regexp, $text, $matches);

print_r($matches); // $matches['username'] will contain username.

Shiplu Mokaddim
My talks,
Follow me,
SUST Programmers,
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to