How can I check via regex if a string is: - letters-only (a-z, insensitive) - does not have an equal sign
ex.
class
- should passclass="something"
- should failclass=someclass
- should fail
So far I have this:
[a-zA-Z][^=]+
However when I tested it on regex101 with
class=someclass
It results with:
- Match 1 - Full match 0-5 class
- Match 2 - Full match 6-15 someclass
What am I missing here? Thanks!