java pattern match line algorithms ii week 5 1 regular expressions mx s blog