Pāriet uz saturu

Dalībnieks:Edgars2007/Datubāze

Vikipēdijas lapa
Apraksts Regex
Vismaz 5 nenoformētas atsauces <ref>(https?://[^][<>\s"]+)</ref>.*?<ref>(https?://[^][<>\s"]+)</ref>.*?<ref>(https?://[^][<>\s"]+)</ref>.*?<ref>(https?://[^][<>\s"]+)</ref>.*?<ref>(https?://[^][<>\s"]+)</ref>.*?<ref>(https?://[^][<>\s"]+)</ref>
<ref[^>]*>\s*\[?(https?://[^][<>\s"]+)\]?\s*</ref>
Atsauču clean-up v2.0 <ref([^\>]*)?>([^\<]*)</ref>.*?<ref[^\>]*?>\2</ref>
Jāuzlabo, lai ignorētu tukšās atsauces un <ref name="tv"></ref>
Tests: <ref([^\>]*)?>([^\<]*)</ref>(?=.*?<ref[^\>]*?>\2</ref>)
Atsauču clean-up v1.0 <ref([^\>]*)?>([^\<]*)</ref>.*?<ref(?!\1)[^\>]*?>\2</ref> (en:Special:Permalink/679679244#Removal of duplicated citations)
Atsauces pirms pieturzīmes ([^\.,:;])<\s*ref(\s*[^>]*)>([^<]*)<\s*\/\s*ref\s*>([\.,:;]) -> $1$4<ref$2>$3</ref>
Kļūdainās atsauces (# Other issues) Pēdiņas
  • <ref\s+(name|group)\s*(/|(?<!/))>
  • <ref(\s+[^>\n]*)(name|group)\s*=\s*" "([^ >\n]+)" -> <ref$1name="$2"
  • <ref(\s+[^>\n]*)name\s*=\s*(name\s*=) -> <ref$1$2
  • <ref\s+(name|group)\s*=\s*[\x22\x27]([^\x22\x27<>=\n]+?)\s*(/|(?<!/))> -> <ref name="$1"$2>
  • <ref\s+(name|group)\s*=\s*([^\x22\x27<>=\n]+)[\x22\x27]\s*(/|(?<!/))> -> <ref name="$1"$2>
  • <ref\s+(name|group)\s*=\s*\x27\x27([^\x22\x27<>=\n]+)\x27\x27\s*(/|(?<!/))> -> <ref name="$1"$2>
  • <ref\s+(name|group)\s*=\s*\x22([^\x22\x27<>=\n]+)\x27\s*(/|(?<!/))> -> <ref name="$1"$2>
  • <ref\s+(name|group)\s*=\s*\x27([^\x22\x27<>=\n]+)\x22\s*(/|(?<!/))> -> <ref name="$1"$2>
  • <ref\s+(?:name|group\s*(?:[+-]\s*)?)?(\x22[^\x22<>=\n]+\x22|\x27[^\x27<>=\n]+\x27)\s*(/|(?<!/))> -> <ref name=$1$2>
  • <ref((?:\s+[^>\n]*)?)(?<!/)></ref\s*> -> <ref$1/>
  • <ref\s*/>
  • (<ref\s+)([^>\n]+?)(/>|(?<!/)>) (...)
    • (<references\s++)([^>\n]+?)(/>|(?<!/)>) (references tags -> {{atsauces}})

  • <ref(\s+[^>\n]*)(name|group)\s*=\s*"[‘’“”]([^"\n]+)[‘’“”]" -> <ref$1name="$2"
  • <ref\s+(name|group)\s*=\s*([^\s"“”\x27<>=]+(?-i:[\sÀ-ʯ]+[^\s"\x27<>=]+)+)\s*(/|(?<!/))> -> <ref name="$1"$2>
  • (\s+(name|group)\s*=\s*)[‘’]([^‘’"<]+)’ -> $1"$2"
  • (\s+(name|group)\s*=\s*)["“”]([^“”"<]+)” -> $1"$2"
  • (\s+(?:name|group)\s*=\s*)[‘’]([^‘’"<]+)’
  • (\s+(?:name|group)\s*=\s*)["“”]([^“”"<]+)”

  • (\s+(name|group)\s*=\s*)[“”]([^“”<]+)[“”] -> $1"$3"
  • <ref\s+(name|group)\s*=\s*[\x22\x27]([^\x22\x27<>=\n]+?)\s*(/|(?<!/))> bez noslēdzošajām pēdiņām
  • <ref\s+(name|group)\s*=\s*([^\x22\x27<>=\n]+)[\x22\x27]\s*(/|(?<!/))> bez atverošajām pēdiņām
  • <ref\s+(name|group)\s*=\s*\x27\x27([^\x22\x27<>=\n]+)\x27\x27\s*(/|(?<!/))> dīvainas pēdiņas (piem, '')
  • <ref\s+(name|group)\s*=\s*\x22([^\x22\x27<>=\n]+)\x27\s*(/|(?<!/))>, piemēram, <ref name="LNB'>
  • <ref\s+(?:(name|group)\s*(?:[+-]\s*)?)?(\x22[^\x22<>=\n]+\x22|\x27[^\x27<>=\n]+\x27)\s*(/|(?<!/))> name bez "="
Apraksts Regex
Veidnes {{val}} nepareizs lietojums val[-\|](?!(ab|abq|ady|af|akk|alt|am|an|ang|ar|arc|arz|as|ast|av|ay|az|ba|be|ber|bg|bn|bo|br|bs|bua|ca|ce|ch|chg|chm|ckt|co|com|cop|crh|cs|cv|cy|cz|da|de|den|dgo|dk|dsb|dv|dz|ee|egy|el|el2|en|es|et|eu|evn|fa|fi|fil|fo|fr|fro|frr|fur|fy|ga|gag|gd|gil|gl|gn|got|gr|grc|gu|gv|haw|hbo|hbs|he|hi|hr|hsb|ht|hu|hy|ibl|id|ig|ilo|is|it|iu|ja|ka|kab|kbd|kg|khw|kk|kl|km|kn|ko|krc|krl|ku|kur|kv|kw|ky|la|lb|liv|lld|lmo|ln|lo|lt|ltg|lv|ma|mah|mdf|mg|mh|mi|mk|ml|mn|mnc|mo|mr|ms|mt|my|nah|nap|nb|nds|ne|nl|nn|no|nog|non|nr|nrm|nso|ny|oc|om|os|ota|p|pa|pag|pap|peo|pi|pl|pli|pms|prs|ps|pt|qu|rar|rm|rn|ro|ru|rue|rw|sa|sah|sc|scn|sco|sd|se|si|sjd|sk|sl|sm|sma|sme|smj|smn|so|sq|sr|srh|srp|ss|st|sux|sv|sw|syc|syr|ta|te|tet|tg|th|ti|tk|tl|tn|to|tpi|tr|tt|ty|tyv|ua|udm|ug|uk|ung|ur|uz|vec|vep|vi|vls|vro|wa|wen|xcu|xh|yi|ynk|yo|yrk|za|zh|aizmetnis))
Raksti bez attēliem
  • \.(gif|jpe?g|png|svg|tiff?)\s*[<|}\]]
Typo (30. dec. versija) (enģe[lļ]|evanģ|\blīzko\b|\blīdz\sko\b|albūm|mobīl|automobīl|fosīl|tekstīl|stabīl|licen[zž]|tēmek|trenne|nummur(?!muiž)|inscinē|konditorij|ģērbo[nņ]|higēn|magnetaf|diktafon|mikrafon|patalo[gģ]|dzelzsceļ|dzels?ceļ|dzelzbeton|lok(amotīv|amatīv|omatīv)|ekanomik|mitaloģ|dakān|alkahol|luksafor|viduskol|i(ztab|zstab|sztab)|orģināl|rengen(?!hof)|modēm|asteorī|entuazis|propogand|kontroband|bat[ea]rej|duplik[aā]t|kompoten|atvilkn|i(nž[ie]nēr|nžinier)|aps(olūt|urd|olv|orbc)|paralimp(?!iskās\s*=)|h(i[ea]rhi|earhi)|laima\sslim|tēlotāja\smākslā|gardrob|plastalīn|noziedzinie|želantīn|šederv|ornomen|atkreditāc|netikai|savaļļ?(?!niek)|žandr|nostaļģ|ekspid|universtāt|paual|los\sandž|arhitip|dienasta(?!uriņ)|anegdot|caumur|že(nšeņ|nseņ|ņšen|ņsen|ņseņ)|al(k[ao]kol|kahol|h[ao][hk]l))
Nepareizs = skaits virsrakstos
  • ^(=+) *([^\n=]+?) *=+\1 *$
  • ^=+(=+) *([^\n=]+?) *\1 *$
  • ^(=+) *([^\n=]+?) *(=+)(?<![^=]\1)$
Nepareizās gadu saites
  • \[\[\s*([12]\d\d\d)\s*\|\s*[12]\d\d\d(?<!\1)\s*\]\]
Iekšējās saites ārējo saišu aprakstos
  • \[(https?://[^\s\]]+) +([^\[\]]*)\[\[(?:[^\|\]]+\|)?([^\]]+)\]\]([^\[\]]*)\]
Ārējās saites
  • Nosaukums angliski
  • Ārējas saites
  • Ārējie linki
  • Linki