I'm trying to figure out a regex (in PHP) to find
<ANYTHING_BUT_WHITSPACE>? OR ?<ANYTHING_BUT_WHITSPACE>
and replace the ? with a blank space. So, '?test test?' should become 'test test'. I have one working in java
"(?<=\\S)\\" + "?" + "|\\" + "?" + "(?=\\S)"
Any idea what it would be in PHP?