I'm kinda a newbie to this regular expression thing. I am trying to write a regular expression to match an identifier that follows these rules:
It must begin with a letter and can have only letters, digits and underscores. The identifier must also end with a letter and must not have two consecutive underscores.
I've tried to come up with the regex for this but I haven't had much success. I need help.