started with externalising regex