Mediawiki tag removal regex
From WikiAlpha
Revision as of 18:21, 9 July 2011 by Richard (Talk | contribs) (Created page with "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. <nowiki>(?:\[\[|...")
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.
(?:\[\[|\{\{)[^|]+\|([^\]\}]+)(?:\]\]|\}\})