之间凸显我试图从东西像提取模式{THIS_PATTERN}
类似如下:匹配资金和大括号
.intro-header {
padding-top: 50px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
padding-bottom: 50px;
text-align: center;
color: #f8f8f8;
background: url(../img/{BG_IMAGE_0}) no-repeat center center;
background-size: cover;
}
在这种情况下,将{BG_IMAGE_0}
。
我想不出有什么错我的正则表达式:\{[A-Z_]*\}
我有一个regex101小提琴这里: https://regex101.com/r/KF5Sz6/2
您错过了“数字”'\ {[A-Z_ \ d] * \}' – strah