I am trying to replace whitespace between two apostrophes in a string. So, if I have "the quick 'brown fox jumped' over the fencec", I'd like to see "the quick brown@fox@jumped over the fence".
The code would something like:
$statement = preg_replace("/'(.*?)'/", "@", $statement);
Of course, the problem with the above statement is it replaces everything between the apostrophes, I only want to replace whitespace. Any ideas (yes, I've googled, read the manual, I just can't figure this one out, thanks!).
Joe