You can make a regex that will match an open bracket followed by stuff
followed by a close bracket, but a real solution would have to properly
handle nesting of blocks, and that is theoretically impossible with
regexes as it would require infinite state. (The reason C comments end
with a first */ and can't nest).
Mike Hales wrote:
> Does anybody have a regex that will match a Smalltalk block. I'm no
> regex pro and I'm struggling to get one that works.
>
> Thanks,
>
> Mike
>
> Mike Hales
> Engineering Manager
> KnowledgeScape
> (801)413-2809
> (801)880-6270 Fax
>
[hidden email] <mailto:
[hidden email]>
>
>
>
--
Vassili Bykov <
[hidden email]>
[:s | s, s printString] value: '[s: | s, s printString] value: '