Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get email with preg grep php

<?php 
    $text = 'Ruchika < ruchika@example.com >';
    preg_match_all("/[._a-zA-Z0-9-]+@[._a-zA-Z0-9-]+/i", $text, $matches);
    print_r($matches[0]);
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #email #preg #grep #php
ADD COMMENT
Topic
Name
8+7 =