Date: Wed, 29 Sep 1999 10:43:24 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Oleg Ossovitskii cc: djgpp AT delorie DOT com Subject: Re: Regexp In-Reply-To: <938279461@p20.f44.n478.z2.FidoNet.ftn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 25 Sep 1999, Oleg Ossovitskii 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. Close. You need to use "[ZH]R-\\(16\\|32\\)", I think.