Korisnik:Srđan/regex
Korisni regularni izrazi (za upotrebu u Atomu).
Početna nula za datume
uredi- Find – \b0*([1-9][0-9]*|0)\b
- Replace – $1
Decimalni zarez
urediPaziti na "title=" u referencama.
- Find – (\d),(\d\d\d)
- Replace – $1.$2
font color u šablon color
uredi- Find – <font color="(.*?)">(.*?)<\/font>
- Replace – {{color|$1|$2}}
ISO-8601 u DD. MM. GGGG
uredi- Find – (\d\d\d\d)-(\d\d)-(\d\d)
- Replace – $3. $2. $1
- → u D. M. GGGG
- Find – 0(\d). 0(\d). (\d\d\d\d)
- Find – 0(\d). (\d\d). (\d\d\d\d)
- Find – (\d\d). 0(\d). (\d\d\d\d)
- Replace – $1. $2. $3
D Month YYYY u D. M. GGGG
urediTako za svaki mjesec.
- Find – (\d) January (\d\d\d\d)
- Replace – $1. 1. $2