Hello
I am trying to use the Regex match in a filter to find numbers that have dates in them. I cannot seem to find anywhere how to look for specific numbers in a specific order, just to show that there are numbers in the field. The field is set as a string, so that is not the problem.
My issue is that I have invoice numbers that have dates at the end in the format yyMMDD, but they are all not going to be there, and some of the digits will be cutoff depending on how long the invoice number is (for a max of 12 characters). Here are some of the sample invoice numbers:
| Inv# | "Date" |
| 380450219070 | 19070 |
| 371821819050 | 19050 |
| 969472190701 | 190701 |
| 300119060 | 19060 |
| 134992028871 | 1 |
| 192672002611 | 1 |
| 3023587988Z | |
| 304774753418 | 18 |
| 199273419042 | 19042 |
| 201168319052 | 19052 |
| 122499190501 | 190501 |
| 101704119021 | 19021 |
| 110454919050 | 19050 |
| 187262000701 | 1 |
| 110611219053 | 19053 |
| 140045190628 | 190628 |
| 100646719070 | 19070 |
| 161521519062 | 19062 |
| 302521620060 | 20060 |
| 302333621060 | 21060 |
As you can see, the "date" is rather inconsistent other than it will start with 1 or 2, but a few don't even have what looks to be a date. A lot of them seem to be from 2019, so I could probably capture the majority stating that the pattern I am looking for starts with 19 and may have up to 4 more digits after it, with a maximum of 12 characters in the field.
Is there any way to use Regex in a filter to find these? Or any other way possible?
Thanks!