Dont know whether this is the right place to post or not, but I post here.
I get a string in
Code: Select all
$text='<xyz:firstattrib><xyz:new>400,500</xyz:new></xyz:firstattrib> This is first message, say hello world';Code: Select all
if(preg_match("/(<.*>)+/Us", $text)){
$text = preg_replace("/(<.*>)/Us", '',$text);
}Code: Select all
$text='400,500 This is first message, say hello world';But rather extracting from here, I would like to extract it from the regexp, is it possible, is there any function which can do that?
Thank You
Dude 81