I need to parse strings from a TDF filethat contains fields of sentences.. example
Up until recently I had just put an underscore in the all spaces. However I want it to work right without that workaround. First is it possible to only token by tabs? if so how? This is what I have been trying.
Originally posted by S. Lohi: Using just "\t" has always worked for me (note only one backslash, I don't know why you have two of 'em).
Normally, you need two backslashes in order to pass the string consisting of the '\' and the 't' characters to the regex expression. However, in this case, passing the string consisting of the \u0009 character should work equally well, since the java compiler and the regex parser interpret \t as the same character.