I need a regular expression that match that criteria:
1 member 2 members 10 members 100 members 1,000 members 10,000 members 100,000 members 100,000,000 members 999,999,999,999 members
So I did:
\d+ member| \d+ members| \d+,\d+ members| \d+,\d+,\d+ members| \d+,\d+,\d+,\d+ members
You can see it Interactively here: https://regex101.com/r/oW3bJ6/2
But deep in my heart I now this is very ugly. Could you guys/girls help me find an elegant solution ?