Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8627

RegEx for dd.mm.yy-dd.mm.yy

$
0
0

Hello,

 

I am looking for a regex for dd.mm.yyyy-dd.mm.yyyy

 

dd and mm can vary from 1 to 2 digits:

example:

 

  • 1.1.14–31.3.14
  • 1.01.14–31.3.14

 

\d{1,2}\.\d{1,2}\.\d{1,2}  is matching:

 

1.1.1431.3.14


But I need to match  the whole 1.1.14–31.3.14 .

But I am not sure how to deal with the minus -

 

Could anybody help me?

 

Thanks

Regards Mario


Viewing all articles
Browse latest Browse all 8627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>