Thread:Mathmagician/@comment-4795804-20120923193038/@comment-5209426-20121010094730

Sorry, is a JavaScript function. I download the data from the server using the parser API like this then I grind it up with JavaScript string processing functions to extract something useful out of it. This works for me since I'm using JS in the first place to do AJAX but it's rather heavy handed for normal Wiki work.

It'd be great if MediaWiki let you use Regexs but I don't believe it does, there are extensions like mw:Extension:RegexFunctions but that isn't installed. AFAIK, The best you can do by default is a char-by-char filter template (assuming that doesn't glitch out as well).