Fixed the regex by making it non-greedy

now i finally know what the g stands for.