Re: [go-nuts] regexp syntax and named Unicode character classes

2020-01-07 Thread Ian Lance Taylor
On Tue, Jan 7, 2020 at 10:39 AM Tom Payne wrote: > > Thank you :) Is this worth adding to the regexp/syntax documentation? I'd > happily contribute a patch. I think so, if it can be described precisely and tersely. Thanks. Ian > On Tuesday, January 7, 2020 at 7:36:02 PM UTC+1, Ian Lance Tayl

Re: [go-nuts] regexp syntax and named Unicode character classes

2020-01-07 Thread Tom Payne
Thank you :) Is this worth adding to the regexp/syntax documentation? I'd happily contribute a patch. On Tuesday, January 7, 2020 at 7:36:02 PM UTC+1, Ian Lance Taylor wrote: > > On Tue, Jan 7, 2020 at 10:22 AM Tom Payne > > wrote: > > > > tl;dr How should I use named Unicode character classes

Re: [go-nuts] regexp syntax and named Unicode character classes

2020-01-07 Thread Ian Lance Taylor
On Tue, Jan 7, 2020 at 10:22 AM Tom Payne wrote: > > tl;dr How should I use named Unicode character classes in regexps? > > I'm trying to write a regular expression that matches Go identifiers, which > start with a Unicode letter or underscore followed by zero or more Unicode > letters, decimal

[go-nuts] regexp syntax and named Unicode character classes

2020-01-07 Thread Tom Payne
Hi, tl;dr How should I use named Unicode character classes in regexps? I'm trying to write a regular expression that matches Go identifiers , which start with a Unicode letter or underscore followed by zero or more Unicode letters, decimal digits, and/o