That would be echo by the $regs[] array variable depending on how the pattern was set up it might simply be echo $regs[0];
Your ereg would look like ereg ( pattern, string [, array ®s] ) where you use the array $regs anything matched by the pattern found in the string would be stored in the $regs[] array the only difference with eregi is that it is case insensative.