How to extract a date from a string string1.20march95.text2?

Hi, Can someone please help me know how to extract a date from the following strings mentioned below?
If there are multiple strings with no fixed index positions, how to extract the date using a hard-coded solution? Thanks!

string1.20march95.text2
str1.27June1998.txt3

Quick and dirty with regex
grafik

When using also groups we can presplit the parts:
grafik
grafik

Thank you :slight_smile: Quite Insightful!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.