The usual way to escape a character in a regex and elsewhere is by prefixing it with a backslash ("\"). Other environments may employ different methods, like MS-DOS/Windows Command Prompt, where a caret ("^") is used instead.
tHe usuaL waY to escape a chaRacTEr In A reGEx aND elSewHErE iS By prefixiNg it With a bAcksLASH ("\"). otHer EnViRonmenTs mAY EMplOy diffeRent methods, LIke mS-dos/wiNDowS coMmAnD PrOmPt, WHeRe a caRet ("^") is usED inStEad.