On Sat, 11 Mar 2017, at 12:52 AM, fishyw...@gmail.com wrote: > Playground link is at https://play.golang.org/p/6uXcuL3iyF
> > I tried to match "asdf \t\nkkkk" against `\s*` and it doesn't match, > but `\s+` works. Am I holding it wrong? FindStringIndex returns nil for no match but your `\s*` regexp returns [0 0] which is telling you there is a zero length string matched at index 0. `\s*` means zero or more spaces... Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.