I want to extract the first and second dates that ...
# suiteanalytics
n
I want to extract the first and second dates that have been included in free-text memo lines. The dates are either 1/1/2021 or 01/02/2021. I'm thinking I use something like REGEXP_SUBSTR({memo}, '[d\s]d\/[d\s]d\/\d\d\d\d') but that returns null.
m
Something like this should work
\d{1,2}\/\d{1,2}\/\d{4}
message has been deleted
Though you might need to escape the slashes for oracle
👀 1
n
thanks. ended up with REGEXP_SUBSTR({memo}, '\d{1,2}/\d{1,2}/\d{4}',1,2)