This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Regex, is forward slash the problem ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Regex, is forward slash the problem ? " Watch "Regex, is forward slash the problem ? " New topic
Author

Regex, is forward slash the problem ?

Grace Green
Ranch Hand

Joined: Nov 08, 2010
Posts: 70


it never matches ... what am I overlooking ?
Grace Green
Ranch Hand

Joined: Nov 08, 2010
Posts: 70
solution:

Harsha Smith
Ranch Hand

Joined: Jul 18, 2011
Posts: 287
is compilation the problem?

String line won't compile
Harsha Smith
Ranch Hand

Joined: Jul 18, 2011
Posts: 287
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39478
    
  28
I think the problem is that we were not shown the real code; I suspect there was a real quote at the end, after that escape-quote.
 
 
subject: Regex, is forward slash the problem ?