I am implementing ESLint id-match rule and I want to enforce camelCase convention.
I have now came up with ^[a-z]+(?:[A-Z][a-z]*)*\d*$
that is used to validate:
fooB
fooBar
fooBarBaz
foo123
fooBar123
and that does not validate:
foo123Bar
foo_bar
foo$
föö
Is this a correct regex to validate compatibility with the camelCase convention?