Q521. What is the purpose of the caret (^) and dollar sign ($) characters in regular expressions?
In regular expressions, the caret (`^`) and dollar sign (`$`) are known as **anchor characters**. They do not match any actual characters; instead, they assert positions ...