Miracle: [技术贴]求教一个正则表达式 [阅读: 523] 2007-03-22 05:40:42 我想做一个很简单的基于模板的文本/代码工具。如果我有 aaabbcaldf adkfhaddfu flkdjasdf <%= getip( theIP ) %> asdifa932r asfd 这样的字串,要搜索出其中的<%=%>,取出中间的 getip( theIP ) 然后把<%= getip( theIP ) %>替换成某个值,该怎么写这个正则表达式?