Mark As Completed Discussion

A caret (^) is another metacharacter. It matches characters at the start of the string. This is helpful when we need to match multiple strings that start with similar characters.

All the given strings begin from 'It', and hence are successfully matched with the given regular expression '^It'.

JAVASCRIPT
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment