Mail Archives: djgpp/1999/09/29/09:56:45
Oleg Ossovitskii (avatar AT netcity DOT ru) wrote:
: If I write regexp "[ZH]R-(16)" that don't match string ZR-16, but if I write
: "[ZH]R-\\(16\\)" that matched ZR-16 & HR-16, but I need ZR-16 & ZR-32! And if I
: write "[ZH]R-\\(16|32\\)" that don't match nor ZR-16 nor ZR-32 and nor HR-16
: etc. I have gcc 2.95. Please help me, or sent me via e-mail documentation on
: regexps from djgpp with _examples_.
Well, there are different flavours of regexes. Try the book Mastering
Regular Expressions from O'Reilly for a thorough examination.
Perhaps the man page for Regex have some information?
Anyway, jugding by what you've said I guess that "[ZH]R-\\(16\\|32\\)"
will match what you want.
Right,
MartinS
- Raw text -