The 3rd macro shared here works:
For more information, see the wiki Searching the Forum for Answers section.