I have recently figured out that I haven\'t been using regex properly in my code. Given the example of a tab delimited string str, I have been using str.s
str
str.s
\ is consider to be escape char in java, so to get correct regex you need to escape \ with \ and t to indicate tab.
\
This tutorial will help more