Perl regular expression to find a exact word
perl, regex
Solution
You must use `\b` at the words' border:
/\bsprintf\b/
Problem
I want to find the word `sprintf` in my code. What Perl regular expression should be used? There are some lines which have text like `sprintf_private`, which I want to exclude, but need just `sprintf`.