[Pharo-users] Non-greedy RegEx?

Thierry Goubier thierry.goubier at gmail.com
Tue Feb 5 02:44:56 EST 2019


The Regex engine inside SmaCC allows for non-greedy REs. But it's
integrated as a parser first stage, not as an independent RE engine.

Regards,

Thierry

Le mar. 5 févr. 2019 à 08:34, Esteban Lorenzano <estebanlm at gmail.com> a écrit :
>
> Hi,
>
> Yes, Pharo regex implementation is very naive.
> We will be moving to a PCRE binding to match outside world standards but we have not had the time to work on it :(
>
> Esteban
>
> > On 5 Feb 2019, at 00:27, Manuel Leuenberger <leuenberger at inf.unibe.ch> wrote:
> >
> > Hi,
> >
> > I just noticed that the Pharo regexes do not understand non-greedy matches. A regex engine to be PCRE is kind of essential, not having '.*?' to be a parseable and working regex is a bummer. Are there any more powerful regex engines around for Pharo? I could not find any.
> >
> > Cheers,
> > Manuel
> >
> >
>
>



More information about the Pharo-users mailing list