Fix indentation, make Regex pre-compile the pattern.