You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Mark Weaver <ma...@npsl.co.uk> on 2006/04/28 10:55:52 UTC

RegularExpression syntax

Is there any documentation on the syntax used by the RegularExpression 
class?  The current API docs don't seem to mention this class at 
unfortunately.

More specifically my question is if the syntax is the same as that of 
Javascript's regular expressions (I've done an exslt:regular-expressions 
implementation for Xalan that currently uses boost::regex, but since 
Xalan requires Xerces using Xerces' implementation would clearly be more 
sensible; however the exslt specification requires Javascript syntax).

Thanks,

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: RegularExpression syntax

Posted by David Bertoni <db...@apache.org>.
Mark Weaver wrote:
> Is there any documentation on the syntax used by the RegularExpression 
> class?  The current API docs don't seem to mention this class at 
> unfortunately.
> 
> More specifically my question is if the syntax is the same as that of 
> Javascript's regular expressions (I've done an exslt:regular-expressions 
> implementation for Xalan that currently uses boost::regex, but since 
> Xalan requires Xerces using Xerces' implementation would clearly be more 
> sensible; however the exslt specification requires Javascript syntax).
> 

Xerces-C's implementation is used to implement regular expression 
support in XML Schema, so you could start there.  It's also quite close 
to the syntax defined by XQuery in the functions and operators:

http://www.w3.org/TR/xquery-operators/#regex-syntax

There is also some documentation from Xerces-J, and Xerces-C's 
implementation is a port of the Java code from Xerces-J:

http://xerces.apache.org/xerces-j/apiDocs/org/apache/xerces/utils/regex/RegularExpression.html

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org