vendredi 4 décembre 2020

Matching a full repeating pattern

I can't seem to figure out this regex https://regex101.com/r/cQ9nK8/38

These should match

  • January.313
  • January
  • January.31.Feb.6
  • GMI3.0.N.1
  • January.31.Feb.6.March.7

This should not match

  • April.May

As you can see they match individually but not as a whole, I though this would work but it doesn't

(?:[[:alnum:]]+(?:\.\d+)*)*

Please help...

Aucun commentaire:

Enregistrer un commentaire