Lankide eztabaida:Theklan/Artxiboa: berrikuspenen arteko aldeak

Ezabatutako edukia Gehitutako edukia
89. lerroa:
's/<ref>\*/<ref>/'
::Good luck :P [[Lankide:Rbrausse|Rbrausse]] ([[Lankide eztabaida:Rbrausse|eztabaida]]) 09:22, 11 urria 2013 (UTC)
:::the second replacement (asterisk) is rather straight-forward: Search for "''<ref>*''" and replace it with "''<ref>''" - this could be done as I don't see any justification for a reference text starting with an asterisk.
:::the first regexp (space between author and year) is more complicated: Search and store as first element any line with "''|authority=''" [the part "''(|authority=.*)''], as second element look for 4 digits followed by <ref> [''"([0-9]{4}<ref>.*)"'']. The found line is replaced by the first element [''"\1"''], a space and the second element [''"\2"''].
:::at least this is the basic idea - I'm not really good in regexps....
:::I'll take a look at Python's regexp implementation - never worked with it. Could take some time, though.
:::[[Lankide:Rbrausse|Rbrausse]] ([[Lankide eztabaida:Rbrausse|eztabaida]]) 16:08, 11 urria 2013 (UTC)
"Theklan/Artxiboa" erabiltzailearen orrira bueltatu.