Answer: d
Explanation: Most of the regular expression character are used for matching patterns, but there are two symbols that are used for matching pattern at beginning or end of a line. These symbols are ^ and $.
Code:
^ - for matching at the beginning of a line
$ - for matching at the end of line