1
我试图数字相匹配的图案的正则表达式正则表达式表达式匹配的模式
}
{
one or more lines here
}
I; EA卷曲闭,随后支架由零个或多个空行,随后卷曲开括号后跟零个或任何文字的更多行后跟一个卷曲的右括号。
我试过如下:
/}\s*{.\n*}/
有如下解释:
} - matches the character } literally
\s* zero or more character [\r\n\t\f ]
{ matches the character { literally
. matches any character (except newline)
\n* matches 0 or more line-feed (newline)
} matches the character } literally
然而,这并不匹配。
请指出我在做什么错?