开发者

coldfusion findNoCase not working

Anyone have any idea why this won't give me back anything?

findNoCase("flashvars.ID = ''",result.FileContent)

I know that flashvars.ID = '' is in the result, as I dump it out and can see it. When I do just...

findNoCase("flashvars.ID",result.FileContent)

It finds it! I could probably d开发者_如何学Co a bunch of crap with len() mid() etc. to find out if the value of flashvars.ID is empty, but I just want to know why the first findNoCase doesn't work!


Probably a whitespace issue. Give this a shot:

#refindNoCase("flashvars\.ID\s*.=\s*.''",content)#
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜