Don't use magic regex match global variables
Don't use magic regex match global variables

If a match doesn't work then you can get unexpected results (i.e. the
previous regex match). This way seems slightly better in that it will
throw an error if they matching doesn't work.

Using global variables seems so nasty for this. Maybe there's a better
way?

mysociety/publicwhip,mysociety/publicwhip,mysociety/publicwhip