Add a matches() method to Wikicode.