Input: A wiki-link as it comes out of #ask queries ([[:foo|bar]]) Output: foo Thanks to Patrick Nagel.