0

var regEx = /[24680]d*[24680]/

for this regEx variable I was wondering what does it actually mean for this to have double [24680]. I know d means digits from 0 to 9 to clarify that this sin't just one single number and the * is a quantifier that means if it runs zero or more times in a given string... But why is it necessary to put it twice?

ACODE91
  • 21
  • 1
  • 6

0 Answers0