See this macro for a good example:
For more information, see the wiki Searching the Forum for Answers section.