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")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With