Regex 查找匹配的`'';

Regex 查找匹配的`'';,regex,linux,perl,eof,Regex,Linux,Perl,Eof,如何解决此错误?缺少'此处:“允许IP”您在中忘记了' sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: syntax error: unexpected end of file 在Perl代码第7行中的Allow IP'之前 sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: sy

如何解决此错误?

缺少
'
此处:
“允许IP”
您在中忘记了
'

sh: -c: line 0: unexpected EOF while looking for matching `'' 
sh: -c: line 1: syntax error: unexpected end of file
在Perl代码第7行中的
Allow IP'
之前

sh: -c: line 0: unexpected EOF while looking for matching `'' 
sh: -c: line 1: syntax error: unexpected end of file
. "Allow IP' 'Block all except one IP' "