I tried many pattern examples but none worked so far. I want to use a regex pattern that only allows English characters with no spaces and no special characters in flutter.
RegExp('[a-zA-Z]');
This is what I used before, but it allows spaces and other characters.
Also after using
r'/^[a-zA-Z]+$/'
The string entered in the username always returns false with spaces and special characters and without. I'm not looking for an answer in JavaScript also the other question doesn't have the answer I'm looking for.