I am trying to add 2 functions in one regex line. It is for a formula on a website, where the user must input 4 digits:
^[\d]*$
a{4}
The first line means "only digits" and the second is "exactly 5".
The first line of code is working in my system. But I cant seem to integrate the second line into working with it as well. So can anybody make the proper line of regex (something like ^[\d]a{4}*$
) that actually works with both functions?
I am using Contour in Umbraco v6.1.6 (Assembly version: 1.0.5021.24867).