From: Csaba Gabor on 14 Feb 2010 14:14 On Feb 11, 1:17 pm, "Steve" <cerberu...(a)gmail.com> wrote: > LJB wrote: > > In regular expression how do I say characters A-Z except I and O? I'd > > rather not list each of the 24 valid characters. > > [A-HJ-NP-Z] > > Lists of Matching Characters (Scripting) > <http://msdn.microsoft.com/en-ca/library/ta6y6h4z%28VS.85%29.aspx> Here is an alternate approach for testing at a specific point in the string using look ahead which might be more compact if subtracting off several letters: (?=[A-Z])[^IO] or using negative lookahead: (?![IO])[A-Z] Csaba Gabor from Vienna
First
|
Prev
|
Pages: 1 2 Prev: Connect to WMI remotely with vbscript Next: ANTIVIRUS FREE DOWNLOAD 5351 |