Forums Register Login
String and Regex

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.
Can you post the code you are using? (a whole method that shows the problem, not just a piece of a reg exp)
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
Thread Boost - a very different sort of advertising

This thread has been viewed 513 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 20, 2018 14:10:37.