PCRE -> Perl 6 RE

2020-02-18 Thread Paul Procacci
Hey Guys, I've got a bunch of source files with PCRE's like the following: [\p{L}\p{Z}\p{N}_.:/=+\-@]+ I have a program that generates other perl6 source files, by way of reading the initial source files. It was my intention to simply pass along this regex to the resulting output file for use in

Re: PCRE -> Perl 6 RE

2020-02-18 Thread Brad Gilbert
The \p{L} syntax is done by using :L inside of <> instead /\p{L}/ /<:L>/ You can combine them /[\p{L}\p{Z}\p{N}]/ /<:L + :Z + :N>/ Character classes are also done inside of <> /[_.:/=+\-@]/ /<[_.:/=+\-@]>/ They of course can also be combined with the previous discussed

Re: PCRE -> Perl 6 RE

2020-02-18 Thread Paul Procacci
Right, I'm going with bug. https://github.com/rakudo/rakudo/issues/2624 It looks like there's some discussion about dropping Perl5 regex support from the engine. I didn't want to translate this by hand as there's too many regexes within this source file to do so by hand (I lean on the Perl5 adve