Problem 3 solved

Regex fun. My Regex was a bit messy, but there you go.