Function that returns substring having parameters string & regular expression

Hi,

I tried to write a function that returns substring having parameters string & regular expression.

But i am unable to get it, it is just like regex_substr function in oracle.

Please send me any function that meets my requirment.

it is some thing like below,

Calling funtion

fn_substrRegex(‘sunil1216@gmail.com’, $regexStr);

Result

please help me, it is very urgent.

Thanks in Advance,
Sunil.

pls reply with any idea

How much are you offering to pay? Other than that
a) your problem may be urgent to you but isn’t to us, don’t bump your own thread after 8 hours
b) you haven’t shown us your attempt at the function, you’ve shown us what you need, not what you’ve tried to get it working