[Python-Dev] Re: Adding new escapes to regex module

2022-08-18 Thread Serhiy Storchaka
17.08.22 19:34, MRAB пише: It's not just Java. Perl supports all 4 of \h, \H, \v and \V. That might be why Java 8 changed. But Perl does not have conflict between strings and regular expressions, because regular expression is a separate syntax construct.

[Python-Dev] Re: Adding new escapes to regex module

2022-08-18 Thread Antoine Pitrou
On Wed, 17 Aug 2022 19:23:02 +0100 MRAB wrote: > >> > >> I do not like introducing escapes which are not supported in other RE > >> implementations. There is a chance of future conflicts. > >> > >> Java broke compatibility in Java 8 by redefining \v from a single > >> vertical tab character to

[Python-Dev] Re: Adding new escapes to regex module

2022-08-17 Thread MRAB
On 2022-08-17 17:34, MRAB wrote: On 2022-08-17 08:25, Serhiy Storchaka wrote: 16.08.22 23:24, MRAB пише: Other regex implementations have escape sequences for horizontal whitespace (`\h` and `\H`) and vertical whitespace (`\v` and `\V`). The regex module already supports `\h`, but I can't

[Python-Dev] Re: Adding new escapes to regex module

2022-08-17 Thread MRAB
On 2022-08-17 08:25, Serhiy Storchaka wrote: 16.08.22 23:24, MRAB пише: Other regex implementations have escape sequences for horizontal whitespace (`\h` and `\H`) and vertical whitespace (`\v` and `\V`). The regex module already supports `\h`, but I can't use `\v` because it represents

[Python-Dev] Re: Adding new escapes to regex module

2022-08-17 Thread Serhiy Storchaka
16.08.22 23:24, MRAB пише: Other regex implementations have escape sequences for horizontal whitespace (`\h` and `\H`) and vertical whitespace (`\v` and `\V`). The regex module already supports `\h`, but I can't use `\v` because it represents `\0x0b', as it does in the re module. Now that

[Python-Dev] Re: Adding new escapes to regex module

2022-08-16 Thread MRAB
On 2022-08-16 22:14, Barry Scott wrote: > On 16 Aug 2022, at 21:24, MRAB wrote: > > Other regex implementations have escape sequences for horizontal whitespace (`\h` and `\H`) and vertical whitespace (`\v` and `\V`). > > The regex module already supports `\h`, but I can't use `\v` because it

[Python-Dev] Re: Adding new escapes to regex module

2022-08-16 Thread Barry Scott
> On 16 Aug 2022, at 21:24, MRAB wrote: > > Other regex implementations have escape sequences for horizontal whitespace > (`\h` and `\H`) and vertical whitespace (`\v` and `\V`). > > The regex module already supports `\h`, but I can't use `\v` because it > represents `\0x0b', as it does in