Maybe it would make sense to move this regex up so it wont get compiled everytime again