Hi Walter,
As I can see from sources main job is done in base/src/Match.cxx.
// Author: Allen I. Holub //
// (c) C Gazette. May be used freely as long as author and publication //
// are acknowledged. //
'^' // start-of-line anchor
'$' // end-of-line anchor
'.' // matches any character
'[' // start a character class
']' // end a character class
'^' // negates character class if 1st character
'*' // Kleene closure (matches 0 or more)
'+' // Positive closure (1 or more)
'?' // Optional closure (0 or 1)
Standard classes like [:alnum:], [:alpha:], etc. are not supported,
only [a-zA-Z], [^ntf] and so on.
Escape characters:
// \\ backslash
// \b backspace
// \f formfeed
// \n newline
// \r carriage return
// \s space
// \t tab
// \e ASCII ESC character ('\033')
// \DDD number formed of 1-3 octal digits
// \xDD number formed of 1-2 hex digits
// \^C C = any letter. Control code
I think that's all. If somebody has more complete information, please
reply.
Best regards,
Stanislav.
On Mon, 16 Jun 2003, Walter F.J. Mueller wrote:
> Dear ROOTers,
>
> I wondered what exactly the functionality of TRegexp is. The
> class documentation text just states "Regular expression class".
> So what are exactly the used meta characters, and what matching
> features are supported ? Different implementations vary quite
> a bit in these details (e.g. awk and perl), and it's important to
> understand this.
>
> I'd very much appreciate if somebody could add a brief but
> complete description of the implemented functionality to TRegexp.
>
>
> With best regards,
>
> Walter
>
>
> --
> Walter F.J. Mueller Mail: W.F.J.Mueller@gsi.de
> GSI, Abteilung KP3 Phone: +49-6159-71-2766
> D-64291 Darmstadt FAX: +49-6159-71-2989
> WWW: http://www-kp3.gsi.de/www/kp3/people/mueller.html
>
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET