I have data with dates written as 1992.09.02, as an example. If the dates are not available, you end up with 1992.09.?? or 1992.??.?? or otherwise .??.??.?? if no date is known.
I need to change the ".??" to "" ie., nothing.
Here's is my attempt, but I'm not getting anywhere.
$text="^[1-9]. [\.\?\?] ";
str_replace("\.\?\?", " ", "$text");