Expression using backslash?

[email protected] Tue, 15 Apr 2003 17:29:53 -0400
Newsgroups gmane.comp.jakarta.regexp.user
Message-ID <[email protected]>
I'm having some issues attempting to split on a regular expression that 
contains a backslash.  Here is an example (I want to split on "\/" - an actual 
backslash then forwardslash)..

String blah  = "This\\/is\\/a\\/test";
RE regexp = new RE("\\/");
String[] temp = regexp.split(blah);

If you look at the resulting string array you'll see this:

This\
is\
a\
test

Now why are the backslashes in there?  I thought when you ran a split it was 
support to remove all regexp chars?

Thanks,

- Brent

-------------------------------------------------
Get your very own filtered email account!
http://www.columbia.sc