Hi Jane
there are lots of different versions of regex and Clarion’s implementation (used in both StrPos and Match) is a bit idiosyncratic and limited compared to many others.
so if you look in the Clarion help for strPos, or at
you will see what the valid options are - and you can see your syntax is not supported.
a while ago there was a discussion about quantifiers like your {1,2} and I wrote a function to expand them to valid Clarion syntax. see:
but in your case your might just write [0-9][0-9]? to indicate one or two digits.
so your first might be something like
‘[0-9][0-9]?/[0-9][0-9]?/[0-9][0-9][0-9]?[0-9]?’
or
ExpandRegex(‘[0-9]{1:2}/[0-9]{1:2}/[0-9]{2:4}’)
I am not sure about your second regex with the month names - maybe you need something like
January|Jan|February|Feb|… and so on
Others may know Clarion’s regex better than me but TBH it might be easier to just write straight code - and in that vein I would be interested to see what Claude wrote for you.
cheers
Geoff R