正则表达式“(?:^(?:dont)$)”是什么意思?

What does regex "(?:^(?:dont)$)" mean?

我有一个正则表达式

"(?:^(?:dont)$)"

这是什么意思?它可以用什么样的文字模式观看?

/"(?:^(?:dont)$)"/
" matches the characters " literally
(?:^(?:dont)$) Non-capturing group
^ assert position at start of the string
(?:dont) Non-capturing group
dont matches the characters dont literally (case sensitive)
$ assert position at end of the string
" matches the characters " literally

一如既往,您可以参考正则表达式可视化工具,例如 Regexper