In PHP, how to remove string between Active/End Date parenthesis?
For example:
$String1 = "Text Text - (Active Date: 12-03-2011 , End Date:12-03-2013)";
$String2 = "Free Free Text Text(2000 min)-Ret - (Active Date: 12-03-2011 , End Date: )";
I want $String1 to replace to: “Text Text”
and $String2 to “Free Free Text Text(2000 min)-Ret”
This will do.