Shortening down @supermanPunch Approach with the dot as any char as seperator:
![grafik](https://global.discourse-cdn.com/uipath/original/4X/b/b/5/bb50ccdc1ad6ee1c7d7b55cd52cd529998eeab9f.png)
\b(\d{2}.){2}\d{2,4}\b
Or with some more restrictions to the delimeter:
![grafik](https://global.discourse-cdn.com/uipath/original/4X/9/b/9/9b969c5f5c7f47f2da2799d599ec08c7e0e92d18.png)
\b(\d{2}[\/\\\-\.]){2}\d{2,4}\b
When later a parsing into DateTime is needed we can handle all formats in one go:
Ensure:
![import_systemglobalization](https://global.discourse-cdn.com/uipath/original/4X/b/e/6/be670ee7025eada99665f26cf639bbb098c83518.png)
Assing Activity
arrFormats | DataType: String()
String Array =
{"dd/MM/yyyy","dd/MM/yy","dd\MM\yyyy","dd\MM\yy","dd-MM-yyyy","dd-MM-yy","dd.MM.yyyy","dd.MM.yy"}
Assign Activity:
myDateTime =
DateTime.ParseExact(YourSingleDateString, arrFormats, CultureInfo.InvariantCulture, DateTimeStyles.None)