Hi, I have a text string that I need to match, and I've been trying pat match() but don't have the grasp of it. The text is a filename. I need to identify all files with a certain pattern:
"AB0007 25092019 0822.txt":
2 capital letters. "AB" actually always.
4 digits and a space
ddMMYYYY (or just 8 digits) and a space
4 digits
".txt"
I've been trying but failed with many versions, latest:
file="AB0007 25092019 0822.txt" // for testing; eventually it will be an item in a file list that I cycle through
pattern="AB"+"\d{4}"+"\s"+"\d{8}"+"\s"+"\d{4}";
pat match(file,pattern);
Any help would be appreciated!