The regular expression object is an object that contains a regular expression pattern along with flags that identify how to apply the pattern.
规则运算式物件是包含规则运算式模式以及旗标的一个物件,而旗标会识别如何套用模式。
The regular expression itself is compiled into a Pattern object.
将正则表达式本身编译到Pattern对象中。
The current year was then worked out by constructing a Date object, formatted as a string, and then a regular expression was used to parse out the year.
当前年度通过构建一个 Date 对象(格式为一个字符串)计算,然后使用一个正则表达式来解析年份。
应用推荐