Pattern matching a regex pattern in Haskell

后端 未结 0 655
太阳男子
太阳男子 2021-02-15 03:12

In Scala, I have a regular expression pattern match like this:

val Regex = \"\"\"(\\d{4})/(\\d{2})/(\\d{2})\"\"\".r
val Regex(year, month, day) = \"2013/01/06\"
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题