开发者

coldfusion findNoCase not working

开发者 https://www.devze.com 2023-03-07 21:21 出处:网络
Anyone have any idea why this won\'t give me back anything? findNoCase(\"flashvars.ID = \'\'\",result.FileContent)

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

精彩评论

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

关注公众号