Re: - IndexOutOfBoundsException: clarification

2002-05-13 Thread Holger Stratmann
Actually, you can write much simpler RE's to reproduce this :-)) I had wanted to file a bugreport (along with a few others): RegExp does not "support" more than 16 parenthesized sub-expressions. As soon as you have more than 16 '(...)', you get ArrayIndexOOBExceptions :-( (Actually, I had seen t

Re: backreferences

2002-04-03 Thread Holger Stratmann
Hi prasanna (sorry, which is the first name?), > RE r = new RE("foo_([0-9]{2}).xml"); > String new = r.subst("foo_28.xml", "blah_\1.xml"); > > Doesn't work. i get blah_\1.xml Well... the reason for this is obvious (sadly enough): RegExp does NOT support replacing backreferences... > any sugge

Re: detecting UTF-8 characters

2002-01-16 Thread Holger Stratmann
Hi Sanjay, even though I'm not 100% sure what you're trying to do and why you're using regular expressions for it, I think I can roughly guess and give you some hints: \xNN is used to refer to the character with hex-code NN (e.g. \x20 = ASCII 32 = space) Therefore, you could use [\x20-\x7F] for