regex for matching 9-23 digits with any number of spaces or dashes inbetween -


I have tried the following regex, but it appears that nested "[]" is not allowed.

[\ d [\ s -] *] {9-23}

You're on the right track, what you might want:

  (\ d [\ s -] *) {822} \ d  
  • One digit
  • Any number of white space / dash
  • 8-22 times
  • After this final score

  • Comments