<?php $matches=array(); $string = 'This is a [templateVar]'; preg_match_all("/^[a-z]*@[a-z]*.[a-z]{2}?.[a-z]{2}/", "usde@dev.co.in", $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.