Check if string starts with tab

How do I check if a string starts 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")