我試圖用正則表達式來查找這些塊。 我試圖找到顯示波紋管的代碼示例,使用正則表達式來查找包含某個詞的塊
entity //This is what I want to select
{
"id" "2"
"classname" "light" //This is what it should contain
"_light" "255 255 255 200"
"_lightHDR" "-1 -1 -1 1"
"_lightscaleHDR" "1"
"_quadratic_attn" "1"
"origin" "-128 0 -128"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 0]"
}
}
我將如何向前走發現此塊? 不包含的塊不應選擇「classname」「light」。誰能幫我嗎?
它是類名修復和光變量? –