Hello all,
Suppose I have a one-line input file with the following contents:
\u1234\u4567\u7890\t
Suppose I read this file into a String inputStr. I want to reach the following goal:
inputStr.compareTo("\u1234\u4567\u7890\t") == 0
In other words, I want to parse a string and handle the escape sequences in the same way that Java handles them (things like \t, \n, \r, etc). Is there an existing parser which I can conveniently use to achieve my goal, or do I have to write my own one?
Thanks in advance.
Cheers,
Sam