Click here to Skip to main content
14,977,980 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to get mm/yy with automatic / (slash) with regular expression.

What I have tried:

i used params: '[\\d]{2}\[,\/]/[\\d]{2}'
But i want automatic slash (/)
Updated 9-Jan-20 3:36am
F-ES Sitecore 9-Jan-20 9:32am
You'll need to explain what you mean by "automatic slash"

1 solution

I tried the following and it works fine:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900