I don't believe the regexp package allows matching of bytes rather than utf-8 sequences.
On Sat, Dec 15, 2018 at 3:05 AM Tamás Gulácsi <tgulacs...@gmail.com> wrote: > For such a simple match, I'd use two bytes.Index with an if in a for cycle. > > -- > 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. > -- 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.