Click here to Skip to main content
14,427,400 members
Rate this:
Please Sign up or sign in to 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 (/)
Posted
Updated 9-Jan-20 4:36am
Comments
F-ES Sitecore 9-Jan-20 9:32am
   
You'll need to explain what you mean by "automatic slash"

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I tried the following and it works fine:
/\d{2}\/\d{2}/
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100