Hi,
I am trying to put together a very simple regular expression that will return a string that is contained between two delimiters, in this case starting with < (a sinlge lesser than) and ending with > (a single greater than)
in the result i want to return just everything between but not including those characters.
i put this together:
if (preg_match('/(<(.*?)>)/i', $email, $regs)) {
$result = $regs[0];
}
but this also returns the two delimiters, what am i doing wrong ?