How would you escape a special character, like a period (`.`), in a regular expression in Java?
You can escape a period by writing it as `/.`.
You're almost there! In Java, you need to escape backslashes, so the correct form is `\.`.
Can you explain why double backslashes are necessary in Java strings when using regular expressions?