• Post Reply Bookmark Topic Watch Topic
  • New Topic

String and Regex  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I have a string "Tracking Number|Carrier" in which im looking for regex "|".

On windows platform with java 1.5.0_11 im able to successfully match using regex-string as "\\|".

But the same regexstirng on same datastring is not working on Linux with java 1.5.0_08

Let me know if this really due to java version and platform mismatch or internally there is some other issue.
 
author & internet detective
Marshal
Posts: 37518
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sridhar,
Can you post the code you are using? (a whole method that shows the problem, not just a piece of a reg exp)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!