A slash is not a special regex character therefore there is no need to escape it. Now some programs (like Perl) and also the website regex101.com are using the slash as a delimiter for the start and the end of the regex. In that case it is required to escape the slash.