xsl-list
[Top] [All Lists]

RE: [xsl] Regular Expressions in XPath 2.0

2007-04-21 16:17:14
1) Are regular expressions in XPath 2.0 identical or are they 
similar to those in Perl?

Similar but not identical. Pretty well a subset of what's in Perl.

2) What would be the best approach to re-learn Regular 
Expressions with respect to XPath 2.0, I know I have to first 
re-learn the basics of regular expressions too.

You've had pointers to various tutorials.

I think there's a standard for Regular Expressions and each 
programming language specializes or deviates from the standard.

There's no standard. but in recent years many languages have imitated Perl
to some extent, despite the fact that Perl regular expressions are very
poorly specified (try for example to find the rules on when \n is a
back-reference and when it is an octal character escape).

Michael Kay
http://www.saxonica.com/ 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--