<?php $strings = [ 'foo barf', "foo bar", "kungfoo bar" ]; var_export(preg_replace('/\bfoo\s+bar\b/', 'fubar', $strings));
You have javascript disabled. You will not be able to edit any code.