'" from some content
and after get it i have to Subtract the src attribute and save it in a variable, then
replace it with a php code
This rutine is easy in php but in freemarker is very weird ..
please someone knows hor to do this
thank you !!
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
内置的 ?matches 允许您对给定字符串进行正则表达式搜索。它也返回子字符串匹配的列表,因此您应该能够获取 SRC 属性,将其放入变量中,然后围绕该属性构建 PHP 代码。
有关如何使用内置功能的详细信息,请参阅 Freemarker 手册:
http://freemarker。 sourceforge.net/docs/ref_builtins_string.html#ref_builtin_matches
The ?matches built-in will allow you to do regular-expression searches on a given string. It returns a list of substring matches too, so you should be able to get the SRC attribute, put it into a variable, and then build up your PHP code around that.
See the Freemarker manual for details on how to use the built-in:
http://freemarker.sourceforge.net/docs/ref_builtins_string.html#ref_builtin_matches