Mediawiki tag removal regex
From WikiAlpha
This handy regular expression removes most links and tags from wikitext, so that it can be pasted again on another wiki, without producing broken links.
(?:\[\[|\{\{)[^|]+\|([^\]\}]+)(?:\]\]|\}\})
This handy regular expression removes most links and tags from wikitext, so that it can be pasted again on another wiki, without producing broken links.
(?:\[\[|\{\{)[^|]+\|([^\]\}]+)(?:\]\]|\}\})