You should take a look at @DanThomas’s excellent macro:
For more information, see the wiki Searching the Forum for Answers section.