I'm pretty sure we already have that regex somewhere else in the code. Mind refactoring this a bit?