//returns 'work=' for traditional media with websites
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?(wired\.com)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Wired ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?(flightglobal\.com|Flight Global)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Flight International ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?playbill.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Playbill ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?(variety.com|Variety \(magazine\)\|Variety)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Variety ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?(vogue.com|Vogue \(magazine\)\|Vogue)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Variety ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?(vanityfair.com|Vanity Fair \(magazine\)\|Vanity Fair)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Vanity Fair ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?empireonline.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Empire ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?nme\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=NME |___location=UK ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?qthemusic\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Q |___location=UK ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?billboard\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Billboard ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?rollingstone.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Rolling Stone ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?abc\.(com\.au|net(?:\.au|))(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=Australian Broadcasting Corporation ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?abc\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=American Broadcasting Company ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)abcnews?cbc\.com(?:ca\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=ABCCanadian NewsBroadcasting |___location=USCorporation ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)cbc\?boston.ca(?:com\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisherwork=CBCBoston |___location=CanadaGlobe ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(\[?:\[?businessweek\[|)boston.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=BostonBloomberg GlobeBusinessWeek ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)businessweek?chicagotribune\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Bloomberg BusinessWeekChicago Tribune ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)chicagotribune?chinadaily\.com(?:\.cn\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=China Chicago TribuneDaily ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)csmonitor?chinatimes\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=China ChristianTimes Science|___location=Taiwan Monitor(ROC) ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)miamiherald?libertytimes\.com(?:\.tw\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=MiamiLiberty HeraldTimes |___location=Taiwan (ROC) ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)chinadaily?taipeitimes\.com\.cn(]?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|work=ChinaTaipei DailyTimes |___location=Taiwan (ROC) ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)atimes?udn\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=AsiaUnited TimesDaily News |___location=Taiwan (ROC) ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[?people(?:daily|)chinatimes\.com(?:\.cn\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=ChinaPeople\'s Times |___location=Taiwan (ROC)Daily ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)libertytimes?straitstimes\.com\.tw(]?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|work=LibertyStraits Times |___location=Taiwan (ROC)Singapore ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)taipeitimes?chron\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=TaipeiHouston Times |___location=Taiwan (ROC)Chronicle ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(\[?:\[?(dailymail.co\[.uk|Mail Online)udn\.com(]?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|work=United Daily NewsMail |___location=Taiwan (ROC) UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?(people's daily online|[^\[]{0,10}people(?:daily|)\mirror.comco\.cn(?:uk)\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=People\'s Daily Mirror |___location=PRC UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)straitstimes?denverpost\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Straits Times |___location=SingaporeDenver Post');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[?((?:der|)chronspiegel\.com(?:de|spiegel online)\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=HoustonDer ChronicleSpiegel ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[?((?:die|)(dailymail.cowelt\.ukde|Mailwelt Onlineonline)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=DailyDie MailWelt |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)(mirror.co?economist\.uk)(?:com\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=DailyThe MirrorEconomist |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(\[?:\[?[^\[\|)denverpost]{0,10}\.ew.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=DenverEntertainment Weekly Post');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(\[?:\[?[^\[\|)((?:der|)spiegel]{0,10}forbes\.de|spiegel online)(?:com\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Der Spiegel Forbes');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)((?:die|)weltradiotimes\.de|welt online)(?:com\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=DieRadio WeltTimes ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)economist\?ft.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=TheFinancial EconomistTimes ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)[^?Guardian(\[.co\.uk|]{0,10}\.ew.com(?:sUnlimited)\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=EntertainmentThe WeeklyGuardian |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[?(Hello|OK)[^\[\|]{0,10}forbesmagazine\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Forbes$2! ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)radiotimes?iht\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=RadioInternational TimesHerald Tribune');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(\[?:\[?[^\[|)ft]{0,7}independent\.com(?:co\.uk\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=FinancialThe TimesIndependent |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)Guardian(?independent\.coie\.uk|\sUnlimited)(]?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|work=The GuardianIrish Independent |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)(Hello|OK)magazine?irishtimes\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=$2!The Irish Times ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(\[?:\[?[^\[|)iht]{0,7}latimes\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=InternationalLos Angeles HeraldTimes Tribune');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)[^\[]{0,7}independent?lefigaro\.cofr\.uk(]?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|work=TheLe IndependentFigaro |___location=UKFrance');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)independent?lemonde\.ie(?:fr\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=TheLe Irish IndependentMonde |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)irishtimes\?liberation.com(?:fr\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Irish TimesLibération |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)[^\[]{0,7}seattletimes?La-Croix\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=SeattleLa TimesCroix |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)[^\[]{0,7}latimes?LeParisien\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=LosLe Angeles TimesParisien |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)lefigaro?LaTribune\.fr(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=LeLa FigaroTribune |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)lemonde?Lesechos\.fr(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=LeLes MondeÉchos |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(\[?:\[?FranceSoir\[|)liberation.fr(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=LibérationFrance Soir |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)La-Croix?20Minutes\.com(?:fr\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=La20 CroixMinutes |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)LeParisien?Lequipe\.com(?:fr\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Le ParisienL\'Équipe |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)LaTribune?Canardenchaîne\.fr(?:com\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=LaLe Canard TribuneEnchaîné |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)Lesechos?NouvelObs\.fr(?:com\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=LesLe Nouvel ÉchosObservateur |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)FranceSoir?Lexpress\.fr(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=France SoirL\'Express |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)20Minutes?LePoint\.fr(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=20Le MinutesPoint |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)Lequipe?marianne-en-ligne\.fr(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=L\'ÉquipeMarianne |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)Canardenchaîne?parismatch\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Le Canard EnchaînéParis-Match |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)NouvelObs?Telerama\.com(?:fr\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Le Nouvel ObservateurTélérama |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)Lexpress?Courrierinternational\.fr(?:com\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=L\'ExpressCourrier International |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)LePoint?minute-hebdo\.fr(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Le PointMinute |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[\[|)marianne-en-ligne\.fr(?:\]\]|))(?=[\s]*[\|\}])/gi, '|work=Marianne |___location=France'); ▼
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[\[|)parismatch\.com(?:\]\]|))(?=[\s]*[\|\}])/gi, '|work=Paris-Match |___location=France'); ▼
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[\[|)Telerama\.fr(?:\]\]|))(?=[\s]*[\|\}])/gi, '|work=Télérama |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[\[|)Courrierinternational\.com(?:\]\]|))(?=[\s]*[\|\}])/gi, '|work=Courrier International |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[\[|)minute-hebdo\.fr(?:\]\]|))(?=[\s]*[\|\}])/gi, '|work=Minute |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?asahi\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Asahi Shimbun |___location=Japan');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?yomiuri\.co\.jp(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Yomiuri Shimbun |___location=Japan');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?[^\[\|]{0,10}japantimes\.co\.jp(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Japan Times ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?haaretz\.(com|co\.il)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Haaretz |___location=Israel');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?jpost\.(com|co\.il)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Jerusalem Post ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?Telegraphindia.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Telegraph |___location=Kolkota, India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?Times ?of ?india(\.com|)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Times of India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?Hindustan ?times(\.com|)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Hindustan Times |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?express(?:india\.com| online)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Indian Express ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?financialexpress(?:\.com|)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Financial Express ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?(?:the)?hindu.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Hindu |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?deccanchronicle.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Deccan Chronicle |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?Thestatesman.net(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Statesman |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?dailypioneer.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Pioneer |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?EconomicTimes.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Economic Times |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?tribuneindia.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Tribune |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?IndianExpress.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Indian Express |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?deccanherald.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Deccan Herald |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?Expressbuzz.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The New Indian Express |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?blesk.cz(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Blesk |___location=Czech Republic');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?ihned.cz(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Hospodářské noviny |___location=Czech Republic');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?lidovky.cz(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Lidové noviny |___location=Czech Republic');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?idnes.cz(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Mladá fronta DNES |___location=Czech Republic');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?pravo.novinky.cz(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Právo |___location=Czech Republic');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?praguepost.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Prague Post |___location=Czech Republic');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?mingpao.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Ming Pao |___location=Hong Kong');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?newsday\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Newsday |___location=New York ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?newsweek\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Newsweek ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?nydailynews\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Daily News |___location=New York ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?nypost.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=New York Post ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?[\b\.]{0,20}nytimes.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The New York Times ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?people.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=People ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?scmp.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=South China Morning Post |___location=Hong Kong');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?sfgate.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=San Francisco Chronicle ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)[^\[]{0,10}?smh\.com\.au(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Sydney Morning Herald ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?spectator\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Spectator |___location=UK ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?[^\[]{0,10}scotsman\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Scotsman |___location=UK ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?thisislondon\.co\.uk(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Evening Standard |___location=UK ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?sportsIllustrated\.cnn\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Sports Illustrated ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?standard\.com\.hk(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Standard |___location=Hong Kong ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?thesun.co\.uk(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Sun |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?suntimes\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Chicago Sun-Times ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?telegraph\.co\.uk(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Daily Telegraph |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?theage\.com\.au(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Age |___location=Australia');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?theaustralian\.com\.au(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Australian ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?theglobeandmail\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Globe and Mail |___location=Canada ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?nationalpost\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=National Post |___location=Canada ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?vancouversun\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Vancouver Sun ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?thestar\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Toronto Star ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?torontosun\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=Toronto Sun ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?time.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=TIME ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?(Timesonline\.co(?:\.uk|m)|Times ?online)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Times |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?[^\[]{0,10}usatoday\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=USA Today ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?washingtonpost\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Washington Post ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?washingtontimes\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Washington Times ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?[^\[]{0,10}wsj\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=The Wall Street Journal ');
txt.value=txt.value.replace(/(?:\|\s?(work|publisher)\s?\=\s?(?:\[?\[|)?[^\[]{0,10}un\.org(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=United Nations ');
//returns 'work=' for traditional media; delinks and dabs ___location
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[((?:the |)(Globe and Mail|National Post|Vancouver Sun|Le Devoir|Le Droit))\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=Canada ');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[((?:the |)?(Observer(Sunday )?Times|Daily Telegraph(Mail|GuardianMirror|Express)|Independent|ScotsmanObserver|(SundayGuardian|NME|New Musical Express|)TimesNew Statesman|Scotsman|Spectator)|Daily Telegraph)\]\])(?=[\s]*[\|\}])/gi, '|work=The $1$2 |___location=UK ');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(the )?(Daily (Mail|Mirror|Express)|NME|New Musical Express|New Statesman)\]\])(?=[\s]*[\|\}])/gi, '|work=$1$2 |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(?:The Sun|Daily Star) \((?:United Kingdom|newspaper)\)\|(The Sun|Daily Star)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=UK ');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(apple daily|ming pao|The standard|south china morning post)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=Hong Kong');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(The Age|Herald Sun)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=Australia');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(Asahi Shimbun|Yomiuri Shimbun)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=Japan');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(?:the |)(Irish |Japan |Seattle |Taipei |Taiwan )Times\]\])(?=[\s]*[\|\}])/gi, '|work=The $1Times ');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(La Croix|Le Figaro|L'Humanité|Libération|Le Monde|Le Parisien|La Tribune|France Soir|Direct Matin|Direct Soir|L'Équipe|Le Canard enchaîné|Le Nouvel Observateur|L'Express|Le Point|Paris-Match|Télérama|Courrier International)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(Avvenire|Corriere della Sera|Il Fatto Quotidiano|Il Foglio|il Giornale|Il Giorno|il manifesto|Il Mattino|Il Messaggero|il Resto del Carlino|il Riformista|Il Secolo XIX|Il Tempo|La Nazione|la Repubblica|La Stampa|L'espresso|Corriere del Mezzogiorno)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=Italy');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(?:The |)(Times of India|Hindustan Times|Hindu|Deccan Chronicle|Statesman|Daily News and Analysis|Economic Times|Tribune|Indian Express|Deccan Herald|New Indian Express|Asian Age)\]\])(?=[\s]*[\|\}])/gi, '|work=The $1$2 |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?)(?:\[\[(?:The |)(Hindu|DeccanTelegraph Chronicle|The Statesman|Economic Times|Tribune|\(?:New |Kolkata\)Indian Express\|Asian(The AgeTelegraph)\]\])(?=[\s]*[\|\}])/gi, '|work=The $1 |___location=Kolkota, India ');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(?:The |)((?:Indian|Financial) Express)\]\])(?=[\s]*[\|\}])/gi, '|work=The $1 ');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(?:The |)(Deccan Herald|Daily News and Analysis|Hindustan Times)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=India');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?)(?:\[\[The Telegraph \(Kolkata\)\|(The Telegraph)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=India ');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?)(?:\[\[The Pioneer \(Indian newspaper\)\|(The Pioneer)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=India ');
▲ txt.value=txt.value.replace(/(?:\|\s?( ?:work|publisher)\s?\=\s? (?:\[\[ (?:The |) parismatch\.com((?: Indian|Financial) Express)\]\] |))(?=[\s]*[\|\}])/gi, '|work= Paris-MatchThe $1 |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?\[\[(Blesk|Hospodářské noviny|Lidové noviny|Mladá fronta DNES|Právo|(?:The |)Prague Post)\]\])(?=[\s]*[\|\}])/gi, '|work=$1 |___location=Czech Republic');
//returns 'work=' for traditional media not requiring ___location dab
txt.value=txt.value.replace(/(?:\|\s?(?:publisher|work)\s?\=\s?\[\[(the )?(Billboard|Billboard Magazine|boston globe|chicago tribune|china daily|people.s daily|Houston chronicle|denver post|der spiegel|The economist|Entertainment Weekly|forbes(?:\smagazine|)|Financial Times|FT|(?:The |)Globe and Mail|(?:The |)Vancouver Sun|Guardian|Hello!|International Herald Tribune|iht|(?:los angeles|la) times|le figaro|le monde|lib[ée]ration|mojo|newsday|newsweek|nydailynews|new york(?: daily news| Post| Times|er)|Q magazine|rolling\sstone|scmp|south china morning post|(?:San Francisco|sf) Chronicle|Sports Illustrated|Sydney Morning Herald|smh|Chicago Sun.Times|the australian|Ottawa Citizen|Ottawa Sun|toronto (?:star|sun)|time magazine|time|usa today|washington (?:post|times)|Wall Street Journal)\]\])(?=[\s]*[\|\}])/gi, '|work=$1$2');
txt.value=txt.value.replace(/(?:\|\s?(?:work|publisher)\s?\=\s?(?:\[\[|)?((?:bloomberg |)business\s?week)(?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|work=$1 ');
txt.value=txt.value.replace(/(?:\|\s?(?:publisher)\s?\=\s?(the |)(Billboard|Billboard Magazine|boston globe|chicago tribune|china daily|people.s daily|Houston chronicle|denver post|der spiegel|The economist|Entertainment Weekly|forbes(?:\smagazine|)|Financial Times|FT|(?:The |)Globe and Mail|(?:The |)Vancouver Sun|(?:The |)Guardian|Hello!|International Herald Tribune|iht|(?:los angeles|la) times|le figaro|le monde|lib[ée]ration|mojo|newsday|newsweek|nydailynews|new york(?: daily news| Post| Times|er)|Q magazine|rolling\sstone|scmp|south china morning post|(?:San Francisco|sf) Chronicle|Sports Illustrated|Sydney Morning Herald|smh|Chicago Sun.Times|the australian|Ottawa Citizen|Ottawa Sun|toronto (?:star|sun)|time magazine|time|usa today|washington (?:post|times)|Wall Street Journal))(?=[\s]*[\|\}])/gi, '|work=$1$2');
//returns 'workpublisher=' for new media news magazines
txt.value=txt.value.replace(/(?:\|\s?(?:newspaper|work|publisher)\s?\=\s?(?:\[\[|)?(Huffington Post)(?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|work=$1 |___location=USA');
txt.value=txt.value.replace(/(?:\|\s?(?:newspaper|work|publisher)\s?\=\s?(?:\[\[|)huffingtonpost\?(Digitalspy.comco.uk)(?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|work=HuffingtonDigital PostSpy |___location=UK');
txt.value=txt.value.replace(/(?:\|\s?(?:newspaper|work|publisher)\s?\=\s?(?:\[\[|)(Digitalspy.co.uk)(?:\]\]|))(?=[\s]*[\|\}])/gi, '|work=Digital Spy |___location=UK');
//returns 'publisher=' for electronic media
txt.value=txt.value.replace(/(?:\|\s?(?:newspaper|work|publisher)\s?\=\s?(?:\[\[|)?(hrwbbc.co.orguk)(?:\]\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=Human Rights WatchBBC');
// txt.value=txt.value.replace(/(?:\|\s?(?:newspaper|work|publisher)\s?\=\s?(\[?:\[?[^\[|)]{0,10}(amnestybbc\.orgco\.uk)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=AmnestyBBC International');
txt.value=txt.value.replace(/(?:\|\s?(?:newspaper|work|publisher)\s?\=\s?(?:\[\[|)(bbc.co.uk)(?:\]\]|))(?=[\s]*[\|\}])/gi, '|publisher=BBC');
// txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[\[|)[^\[]{0,10}(bbc\.co\.uk)(?:\]\]|))(?=[\s]*[\|\}])/gi, '|publisher=BBC ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[\[)(bbc( sports?| news(?: online|)|))(?:\]\]))(?=[\s]*[\|\}])/gi, '|$1=$2 ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(bbc( sports?| news(?: online|)|)))(?=[\s]*[\|\}])/gi, '|$1=$2 ');
txt.value=txt.value.replace(/(=[ ]?BBC News)( online|\.com)(?=[\s]*[\|\}])/gi, '$1');
txt.value=txt.value.replace(/(?:\|\s?(?:newspaper|publisher|work)\s?\=\[\[(Al\sjazeera( English)?|AMG|All\s?Music\s?Guide|Allmusic|Amazon\.com|(?:American|Australian|Canadian|British) Broadcasting Corporation|Bloomberg|Cable News Network|cnn|Fox News|Fox News Channel|Google|MSN|MTV|Myspace|mlb\.com|xinhua( news agency)?|Yahoo!?|You\s?Tube)\]\])(?=[\s]*[\|\}])/gi, '|publisher=$1');
txt.value=txt.value.replace(/(?:\|\s?(?:work|newspaper|journal)\s?\=(Al\sjazeera( English)?|AMG|All\s?Music\s?Guide|Allmusic|Amazon\.com|(?:American|Australian|Canadian|British) Broadcasting Corporation|Bloomberg[ ]*\||Cable News Network|cnn|Fox News|Fox News Channel|Google|MSN|MTV|Myspace|mlb\.com|VH1|xinhua( news agency)?|Yahoo!?|You\s?Tube))(?=[\s]*[\|\}])/gi, '|publisher=$1');
//Television media and networks
//returns 'publisher=' for electronic media stripped of ___domain suffices
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?ap\.org(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|agency=Associated Press ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?afp\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|agency=Agence France-Presse ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?reuters\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|agency=Reuters ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?kyodonews\.jp(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|agency=Kyodo News ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?xinhuanet\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|agency=Xinhua News Agency ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)[^\[]{0,10}?aljazeera\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=Aljazeera');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?bloomberg\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=Bloomberg ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?[^\[]{0,10}cnn\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=CNN ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?[^\[]{0,10}espn(\.go)?.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=ESPN ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?foxnews\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=Fox News');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)msnbc?huffingtonpost\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisherwork=MSNBCHuffington Post ');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)books.google?msnbc\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=Google BooksMSNBC');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)[^\[]{0,10}?books.google\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|publisher=Google Books');
▲ txt.value=txt.value.replace(/(?:\|\s?( newspaper|work|publisher)\s?\=\s? (\[? :\[ ?[^\[ |)marianne-en-ligne]{0,10}google\. fr(?:com\] ?\] |)?)(?=[\s]*[\|\}])/gi, '| workpublisher= MarianneGoogle |___location=France');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?(mtv|twitter|vh1|youtube)\.com(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=\'\'$2\'\'');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?((?:[\w]*\.|)Europa\.eu|Europa \(web portal\)\|Europa)(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '|work=\'\'Europa (web portal)\'\'');
txt.value=txt.value.replace(/(?:\|\s?(?:newspaper|publisher|work)\s?\=\s?(?:\[\[|)(AF?P\b|Associated Press|Agence France-Presse|Kyodo ?News|Reuters)(?:\]\]|))(?=[\s]*[\|\}])/g, '|agency=$1 ');
//linked publishing houses
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?Hachette Filipacchi Médias\|(Hachette Filipacchi) \(UK\) Ltd(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '');
txt.value=txt.value.replace(/(?:\|\s?(newspaper|work|publisher)\s?\=\s?(?:\[?\[|)?(John Fairfax (and Sons Ltd\.?|Holdings)|Fairfax(?: Media( Limited)| Digital| newspapers))(?:\]?\]|)?)(?=[\s]*[\|\}])/gi, '');
txt.value=txt.value.replace(/(?:\|\s?publisher\s?\=\s?(\[\[|)(Associated Newspapers|Condé Nast Publications|Fairfax Media|Gannett Company|(Guardian|Telegraph) Media Group|(?:Guardian|Independent) News (?:and|&) Media|Imdb Inc\.?|IDG|IPC Media|MTV Networks|(The |)(?:Washington Post|(?:New York|Seattle) Times) Company|News (?:Corporation|International|Limited)|Prometheus Global Media|Tribune Company|Trinity Mirror|Times Newspapers (?:Limited|Ltd.?)|Nielsen (?: Media Research|Business Media(, Inc\.?|))|Rovi Corporation|Viacom|Time (?:Warner ?|)Inc\.?)(\]\]|))(?=[\s]*[\|\}])/gi, '');
// removing redundancies
|