RE: REGEX

"M Habibi" <[email protected]> Wed, 14 May 2003 14:35:44 -0400
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
try "book\\\\" no quotes.

HTH,
M

-----Original Message-----
From: Neil Merin [mailto:[email protected]]
Sent: Wednesday, May 14, 2003 2:13 PM
To: [email protected]
Cc: Neil Merin
Subject: REGEX


I am having problems creating a simple regex pattern that would match the
string
'books' followed by a backslash '\'.

In other words 'books\' without the ticks.  This appears to be a simple
pattern but I am having problems.  I've tried to create a simpler pattern
that would match a single backslash but had no luck.

linePattern1 = lineCompiler.compile ("books\\");
String test = linePattern1.getPattern();  # line 25

# Runtime Error #
Exception in thread "main" java.lang.NullPointerException
        at ModifyRegistry.main(ModifyRegistry.java:25)

Any suggestions on creating patterns with backslashes.

Thank you,

Neil


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]