How do I check if a string starts with a tab in Groovy?
1 Answer
This are some ways to do it....there are more like regex
def s = "\t"
assert s[0] == "\t"
assert s.startsWith("\t")
This are some ways to do it....there are more like regex
def s = "\t"
assert s[0] == "\t"
assert s.startsWith("\t")
\t
. en.wikipedia.org/wiki/Control_character