How do I check if a string st开发者_StackOverflow社区arts with a tab in Groovy?
This are some ways to do it....there are more like regex
def s = "\t"
assert s[0] == "\t"
assert s.startsWith("\t")
How do I check if a string st开发者_StackOverflow社区arts with a tab in Groovy?
This are some ways to do it....there are more like regex
def s = "\t"
assert s[0] == "\t"
assert s.startsWith("\t")
精彩评论