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.
如果发生这种情况,尝试调整表达式中条件的次序,把数据类型相似的项(数字、字符串、日期等等)分组在一起。
If this happens, try to reorder your conditions in your expression, grouping items of similar data types (Numbers, strings, dates, etc.) together.
更好的方法是使用一种方法来计算日期,比如Calendar . get (Calendar .YEAR),从而避免创建额外的字符串和正则表达式。
Better yet, use a method of working out the date which avoids creating extra strings and regular expression matching, such as Calendar.get (Calendar.YEAR).
这个XPath表达式与存储过程中的其他SQL相结合,返回在输入的日期应该支付的总金额。
This XPath expression is used with other SQL in the stored procedure to return the sum of the payable amount due on the date supplied as input.
/ 来自于文件名的 /usr/home/builds/daily./ 部分(这个Perl表达式中的系列点,匹配诸如 .080908 之类的日期规约的七个特征)。
(The series of dots in this Perl expression matches the seven characters of date specifications such as .080908.)
选择一个日期将生成XPath字面表达式作为函数输入,表示所选的日期和时间。
Choosing a date generates an XPath literal expression as input to the function representing the chosen date and time.
新的功能包括用于模式匹配的正则表达式语法,新的日期函数比如当前日期,还有新的算术函数比如floor,ceiling和round。
New functions include regular expression syntax for pattern matching, new date functions such as current date, and new numeric functions such as floor, ceiling and round.
相关时间或空间表达式的差距,规定了表达式中两个地点名称、日期或时间的偏移方向。
That part of a relative temporal or spatial expression which indicates the direction of the offset between the two place names, dates, or times involved in the expression.
相关时间或空间表达式的差距,规定了表达式中两个地点名称、日期或时间的偏移方向。
That part of a relative temporal or spatial expression which indicates the direction of the offset between the two place names, dates, or times involved in the expression.
应用推荐