I'm following this tutorial.
When I was trying to test my regular expression (The method dump is from linqpad to display it on the console):
Regex.Match("a^7lowah", @"\ba\w*\b").Success.Dump();
It should match a word that starts with an "a" and has x amount of alphanumeric characters to the end of the word.
But unfortunately the regex above matches.
My understanding of the regex:
- "\b" (begin of the word)
- "a" (just the letter a)
- "\w" (alphanumeric character)
- "*" (repeat previous term)
- "\b" (end of the word)
What am I doing wrong?