I'm trying to create a regex expression with the following requirements:
The value:
- Must start with
a-zor_, numbers are OK after the first character - Can have parentheses if they are opened and closed with number inside at the end of string, i.e SomeVar(10) is OK, SomeVar(10 is not OK.
- Can have a
.but only one at a time, and only between letters or numbers. SomeVar.InnerVar is OK, SomeVar..Innevar is not OK.
My try at the regex:
[a-zA-Z_]- ??
- ??