It's `null` if pattern is incorrect.