Made regex even less evil