oldText = oldText.replace(/(\|[ ]*FSK[^<]+)<ref( name="FSK"|)>[^<]+([0-9]{4})(\\|\/|%5C)([0-9a-zA-Z]+)[^<]+<\/ref>(\n)/g, '$1{{FSK|$3|$5}}$6');
oldText = oldText.replace(/(\|[ ]*LEN[^<]+)<ref name="([^"]+)">[^<]+([0-9]{4})(\\|\/|%5C)([0-9a-zA-Z]+)[^<]+<\/ref>([^<]+)<ref name="([^"]+)" \/>(\n)/g, '$1<ref name="$2" />$6{{FSK|$3|$5|RefName=$2}}$8');
 
oldText = oldText.replace(/(\|[ ]*FSK[ ]*=[ ]*([0-9]+|o.[ ]*A.))<[ ]*ref[ ]*>[^<]+([0-9]{4})(\\|\/|%5C)([0-9a-zA-Z]+)[^<]+<[ ]*\/ref[ ]*>(\n)/g, '$1{{FSK|$3|$5}}$6');


return {text: oldText};