Yeah you want to use this example from that thread @sylumer mentioned .
Matching and custom tokens are really, really powerful. sometimes they require some fiddling to get it to match properly. It can help to copy/paste text from one of the PDFs in case there are hidden characters or spaces that throw off your pattern matching.