Building out regex code in snippet.html