[XPath] match() instead of =~ ?

In http://www.w3.org/TR/xpath20req/

3    Must Support String Matching Using Regular Expressions

Satisfied by section 7.5.1 Regular Expression Syntax in [XQuery 1.0
and XPath 2.0 Functions and Operators].
Use Case

      match elements that "end with Row or row"
      *[local-name() =~ ".*[rR]ow"]
      Match phone numbers like 123-456-7890
      field[ . =~ "\d\d\d-\d\d\d\-\d\d\d\d]
      Match any element name with the string "Addr" contained within
the name (case-insensitively)
      *[local-name() =~ ".*[Aa][Dd][Dd][Rr].*"]
      Match a string from a dynamic regular expression
      Department[Code =~ concat("[0-9][0-9]",$v,".*")] 

However, I cannot find the '=~' syntax in
http://www.w3.org/TR/xpath20/ or

Isn't that true the current XPath spec suppor this by
      *[match(local-name(), ".*[rR]ow")]
      field[match( .,  "\d\d\d-\d\d\d\-\d\d\d\d")]
     *[match(local-name() , ".*[Aa][Dd][Dd][Rr].*" )]
      Department[ match( Code , concat("[0-9][0-9]",$v,".*") )] 

instead ?
Any plan to add '=~' syntax into XPath? If not, should someone update
the example in the XPath requirment doc and specify these items are
'satisifies with 'modified syntax'' ?

Frank Yung-Fong Tang
Šýšţém Årçĥîţéçţ

Received on Monday, 14 March 2005 18:57:52 UTC