Reputation: 1336
I got ^[a-z]+([A-Z]?[a-z]+)+ regex to check camel case, how to make it also check that there is no non-character symbols in string?
^[a-z]+([A-Z]?[a-z]+)+
Upvotes: 1
Views: 169
Reputation: 686
Use $ at the end of your expression:
$
^[a-z]+([A-Z]?[a-z]+)+$
Upvotes: 3