Replaced all while loops with regex
posts/loops_two