EXSLT试图囊括通常需要的多数扩展,比如日期处理、正则表达式和数学操作。
EXSLT attempts to cover the most commonly needed extensions, such as date processing, regular expressions, and mathematical operations.
正则表达式很适合提取电话号码、信用卡号码、地址、日期等概念。
Regular expressions are ideal to extract concepts like phone or credit card numbers, addresses, dates, etc..
例如,清单6显示了如何用正则表达式从顾客的订单历史中提取第一笔订单的日期。
For instance, Listing 6 shows how a regular expression can be used to extract the date of the first order in a customer's order History.
应用推荐