Right now, I have a regular expression that looks like this:
[A-Za-z][A-Za-z0-9]*
It matches all alphanumeric characters currently. I want it to be able to match with an expression that has a middle underscore, but not if there are consecutive underscores, leading underscores, or trailing underscores. Ie
test__
(not ok)_test
(not ok)test_
(not ok)test_string
(ok)
What would the regular expression look like?