0

I think I get confused about Java's regular expression backslash. Sometimes we need double backslash. However,sometimes we need just one. For example why \.(what does this mean?) can not match a normal dot, it needs \\. However, the \t can match the tab. If someone put arbitrary number of backslash, how to interpret the meaning. For example if I write \\\\t, what does it mean.

Pshemo
  • 122,468
  • 25
  • 185
  • 269
fortune
  • 59
  • 6

0 Answers0