开发者

Check if string starts with tab

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")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜