我想使用支持正则表达式的程序搜索 250 个文件,但我不知道如何构建查询。
这是一个示例文件:
//////////////////////////////Crown Area Effects///////////////////////////////
// Super Spies
DbAreaEffectInfo SuperSpies
{
name = text_carea_sprspies_name
desc = text_carea_sprspies_desc
effects = [
// scale sabotage super-effect duration
EffectDuration {
range = SpaceTime
player = Self
// which effect's duration is this scaling
effect = "SabotageBuilding"
scale = 1.25
}
EffectDuration {
range = SpaceTime
player = Self
// which effect's duration is this scaling
effect = "ImprovedSabotageBuilding"
scale = 1.25
}
EffectSpeed {
range = Global
mask = Spies
player = Self
// 25% faster
scale = 1.25
}
EffectMaxHitPoints {
range = Global
mask = Spies
player = Self
// 25% more hit points
scale = 1.25
}
EffectVisualGlow {
range = Global
mask = Spies
player = Self
GlowType = Good
OwnerOnly = true
Icon = icon_crown_superspies_s
Tooltip = text_carea_sprspies_name
VTooltip = vtt_power_unitinfo_SuperSpies
}
EffectIsACrown {
range = Global
mask = Spies
player = Self
crownType = kCrownType_Imperial
}
]
}
我想寻找这样的模式:
<ANYTHING, EVEN NULL>//<ANYTHING, EVEN NULL><MyString><AnyThing, EVEN NULL>
例如:
<anything>//<anything>super<anything>
这将产生以下结果:
// scale sabotage super-effect duration
什么正则表达式查询会给我想要的结果?
提前感谢您的时间和精力!
编辑:
我正在使用有效文件搜索 - http://www.sowsoft.com/search.htm