Modified the regex to allow white space before and after the : character.

I did have time to learn how to compile it and test it locally, altho the regex has been test in javascript and ruby. I hope this could be a useful change.