Skip to content

Instantly share code, notes, and snippets.

View mattstibbs's full-sized avatar

Matt Stibbs mattstibbs

  • Digi-M Ltd
  • Kent, UK
View GitHub Profile
### Keybase proof
I hereby claim:
* I am mattstibbs on github.
* I am mattstibbs (https://keybase.io/mattstibbs) on keybase.
* I have a public key whose fingerprint is 8019 0DA8 2E70 D27A 341E 2308 6F96 1A24 7506 4F3B
To claim this, I am signing this object:
@mattstibbs
mattstibbs / gist:72c69738e382424d08e9
Created April 30, 2014 18:47
Look through a string for UK number plates with a space in the middle, and combine them into a single word (e.g. AB12 GHF -> AB12GHF, J586 GHH -> J586GHH)
def combinesplitregistrations(message):
def contains_digits(s):
return any(char.isdigit() for char in s)
f = message
words = message.split(" ")
newwords = []