Hey everyone,
I have a zap that listens for a Discord message then searches that message for a date and time. To search for the pattern of the date I’m using “Extract Pattern” on the Formatter using this pattern:
\d/\d\d/\d\d\d\d|\d\d/\d/\d\d\d\d|\d/\d/\d\d\d\d|\d/\d/\d\d|\d/\d\d/\d\d|\d\d/\d/\d\d|\d\d/\d\d/\d\d|\d/\d\d/\d\d\d\d
Essentially this is just looking for all variations of typing the date. This works pretty well except when people put a 4 digit year. Even though I have the pattern in there, the zap just picks the first two digits out of the year and thinks it’s found the MM/DD/YY pattern instead. So now people putting the date 2022 are having their events post in ‘20. I’ve tried putting the 4 digit year pattern at the beginning and end of the “Pattern” field but this continues to happen either way.
How can I make sure the zap searches for the 4 digit year first and if it finds it, uses that instead of looking for another possible match?
Thanks!