Re: [R] RegExpr: Help match quote inside a set

2020-02-22 Thread Benoit Vaillant
Hi, On Fri, Feb 21, 2020 at 07:28:10AM -0800, Bert Gunter wrote: > Yes. From ?regex > "A range of characters may be specified by giving the first and last > characters, separated by a hyphen. (Because their interpretation is locale- > and implementation-dependent, character ranges are best avoided

Re: [R] RegExpr: Help match quote inside a set

2020-02-21 Thread Ivan Krylov
On Fri, 21 Feb 2020 13:17:59 +0100 Martin Møller Skarbiniks Pedersen wrote: > "[.,;\"-']" Note that there is an - between " and ', which transforms your regular expression into a range (all characters between " and ') instead of a set. Move the - right in front of the closing bracket ] to make i