What RegEx engine is used in ColdFusion 9?

倖福魔咒の 提交于 2019-12-01 17:59:29

CF9 and CF10 both use Jakarta ORO v2.0.6 - changing it for the existing functions would break backwards compatibility, since other regex engines use different syntax (for both matching and replacement).

However, you can access the java.util.regex package from CF, which provides access to the version of that engine which your JRE uses, using createObject/type=java

If you're not comfortable working with Java classes yourself, I have created a project which wraps the java.util.regex library into a set of handy CFML functions, see cfregex.net for more details.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!