When specifying patterns in the element, realize that regular expressions are used to perform the matching and string replacement.
在元素中指定模式时,请注意,要使用正则表达式来执行匹配和字符串替换。
And its built-in string manipulation functions (including regular expressions), as well as procedural and convenience features make it the ideal language for creating simple "scripting" programs.
而其内置的字符串操纵函数(包括正则表达式),以及程序上的特性和方便性使它成为创建简单“脚本”程序的理想语言。
The way I have programmed these informal parsing tasks has always been somewhat of a hodgepodge of custom state-machines, regular expressions, and context-driven string tests.
我编写处理这些非正式解析任务的程序的方法总是有点象大杂烩,其中包括定制状态机、正则表达式以及上下文驱动的字符串测试。
应用推荐