It is possible to define and use regular expressions with every programming language. Although the use of regular expressions between programming languages is somewhat different, it is often the same.
The dot (.) is used for matching any of characters. When dot is used as a character, the escape character should be used: \. A question mark (?) is used for defining that the preceding character is optional. When it needs to be used as a question mark, an escape character should be used: \?.