From Wikipedia, the free encyclopedia

Greetings and hello.

A member since 2005, I've only started doing more thorough edits since 2014. I am a web developer by profession which helps to tweak things, especially templates.

I should probably make something of this User Page some time, but for now, this is it!

Regex edits

Regexes are very useful to make bulk-edits in one or more long articles.

Football goal lists

These regexes make it easy to bulk-edit long lists of football matches that use the Footballbox template, in order to update old-syntax goal lists (with br-s) into new-syntax ones (with *-lists). It only converts lines with at least two goals.

First pass (put it on the next line):
Replace: \|goals([12])[\s]*=[ ]*([^\n]+)<br([^\n]+)
With: |goals$1 =\n* $2<br$3

Next passes (split the goals, line by line; execute it multiple times until it finds no matches):
Replace: (\{\{(goal|sent off)[^\}]+\}\})<br[^>]*>([^\n<]+)
With: $1\n* $3

Before saving, scroll over the changes it has made via the Wikipedia editor!