这似乎是你的问题
insertbefore
正则表达式,特别是与该部分
[ \t]
。
我会去
\s
相反,这意味着
一个或多个空格字符
。
此外,您正在使用
.
作为一个
代币
,而不是点的实际特征。你应该逃避它。
所以它会是:
insertbefore: ‘^\s# each header may be up to 12392 bytes. This is the SPNEGO authentication header size limit.‘
</code>
我建议
网站regex101.com
在那里你可以通过对正则表达式模式的细分解释来在线检查你的正则表达式。
我的建议中的具体输入已预先填写
链接
。