I cannot find in the python’s RE module special symbol for the end of the word…
There is \b – beginning of a word, and \B – opposite of \b, which is match for the any symbol of the word except first… But why there is no just end of the word?
Am i missed something?
Actually
\bis not just for beginning of the word, but also for the end of the word.In regex,
\bmeans word boundary. So\b\w+\bis a pattern for a single word.