[Pharo-dev] [Glass] Bug in Regex?
maxleske at gmail.com
Thu Feb 21 03:17:42 EST 2019
Yes, there is indeed such a bug (if it hasn't been fixed in an update to
VBRegex that is). The bug is simple to work around though, as all you
have to do is sort your branch (|) terms by length. Here's the comment
I've written for a regex generating method is use:
" The sorting is very important because VB-Regex aborts early on
'bl' matchesRegex: 'b|bl' --> false
The solution is to sort by length (longest first), then alphabetically,
with the short group optimization at the end. "
On 21 Feb 2019, at 3:33, Mariano Martinez Peck wrote:
> On Wed, Feb 20, 2019 at 5:56 PM Esteban Maringolo via Glass <
> glass at lists.gemtalksystems.com> wrote:
>> What a good case to have GToolkit visualizations help debugging this
>> tree ;)
> Oh yeah..And look Doru, they have some stuff on the top right
> panel: https://regex101.com/r/MqVXz8/1
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev