Replace part of string between quotes in php regex
Now I've got very basic regex skills, only used regex a couple of times for basic stuff. This has probably been asked before, which I apologize for, but I couldn't find any answer for this. Found similar, though and tried to adapt it but to no avail. OK, to the question - How do I replace a space only between certain characters (doublequotes in this case)? Say i have the following string: "mission podcast" modcast A B C "D E F" I want to replace the spaces between mission and podcast as well as the ones between D , E & F whilst leaving the other ones untouched. P.S. What if space was a string?