Note that what you're really doing here is using your pager
's search function. By default most distributions use less
as the display program for man pages. Hitting 'h
' when inside less will bring up its help page.
' search feature uses regular expressions
by default. According to the help page, hitting ctrl+R
just after calling up the search field will turn this off.
Of course you can also just format your regex so that it only matches what you want, as neonsignal demonstrated. Learning how to use regular expressions effectively is one of the most useful skills to have, as they are supported by so many programs.
This is a pretty good regular expressions tutorial: