Using Variable In Regex Python Documentation String Methods Java