I need a REGEXP in php to search and replace "??" in dates.
Posted
by ggg
on Stack Overflow
See other posts from Stack Overflow
or by ggg
Published on 2010-03-31T21:57:44Z
Indexed on
2010/03/31
22:03 UTC
Read the original article
Hit count: 410
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.
© Stack Overflow or respective owner