run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = '{Feel free to|Twenty-four hours a day|Do|Then|You can} stop on by, or {contact us|e mail us|call us|e-mail us|email us} about {your needs|your requirements|your preferences|the needs you have|your family needs}. {We look forward|Good quality} to {hearing from|talking with|listening to|meeting up with} you!'; echo preg_replace('/([^{}]*){[^|]+\|([^|}]+).*?}/', '$1$2', $str);
Output for 5.3.7 - 7.2.0
Twenty-four hours a day stop on by, or e mail us about your requirements. Good quality to talking with you!