I should have figured this out. Thanks for both of your inputs. I will give them a try.
Brian Ed Chidester wrote: > > Brian, > > Yuriy's suggestion will get your code to compile... But, your regular > expression won't match the text you're looking for. > > You need to get rid of the square braces otherwise you'll only match a first > directory with a name of "\" or "w" > > I suggest you try > RE exp = new RE ("^/(\\w+)/.*"); > > this will match one or more word characters in-between the first two slashes. > > Ed. > > On Saturday 15 December 2001 02:08 pm, Yuriy Zubarev wrote: > > Brian, > > > > You need to escape back slash in Java: type \\w intstead of "\w" > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>