[Glass] Regex to match a UUID -- Bug?

Ralph Mauersberger ralph.mauersberger at gmx.net
Mon Feb 4 14:09:13 PST 2019


Hello everyone,

running on GS 3.4.3 (with image built from extent0.seaside.dbf), I tried 
to build a Regex pattern to match an UUID.

Unfortunately the following expression evaluates to false:

'[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}' 
asRegex matches: '964d5d07-1834-0d00-a106-47ae08909eb2'

The same code evaluates to true in Pharo. It seems that the handling of 
the quantifiers in braces doesn't work as expected.

All Tests (nearly 200) in Regex-Tests-Core Package are passing, but I 
did not see any similar test case with quantifiers.

Could this be considered as a bug or is there something wrong with the 
pattern?

Should the Regex-Package in Pharo and GemStone be/behave the same?

Br,

Ralph










More information about the Glass mailing list