I need to match foo1 in following text [@foo1].
So Im using this regex @([A-z0-9]*).
The problem is, it also matches the ending square bracket so I get foo1] as result.
So the questions are:
- Why is the ending square bracket included in the result?
- How do I write regex to match only
foo1

