[squeak-dev] [Cuis] Regular Expressions
Levente Uzonyi
leves at caesar.elte.hu
Sat Nov 26 00:45:01 UTC 2016
On Fri, 25 Nov 2016, Phil B wrote:
>
> I've got a port of Vasilli's version in github.com/Cuis-Ports I've been using that pretty extensively for years without issues
I hate to advertise stuff, but IMHO the version in Squeak is far superior
to the version you ported.
Levente
>
>
> On Nov 22, 2016 11:31 AM, "KenD" <Ken.Dickey at whidbey.com> wrote:
> On Fri, 18 Nov 2016 10:39:52 -0300
> Edgar De Cleene <edgardec2005 at gmail.com> wrote:
>
> > Folks:
> > I wish remove tags from HTMlL
> > According to https://regex101.com/ and http://www.freeformatter.com/regex-tester.html and also of my old Nissus Pro.
> >
> > <.+?>
> >
> > Should be a valid expression.
> >
> > But
> >
> > regex|
> > regex := RxMatcher forString: '<.+?>’.
> >
> > Gives my an error.
> >
> > Any help ?
>
> Edgar,
>
> Sorry for the delay. Busy lives..
>
>
> I found https://github.com/garduino/Cuis-Smalltalk-RegEx but this code is very old and simply loaded fails most test cases (see notes
> below).
>
> The Cuis-Smalltalk-RegEx code definitely signals an error for the example you site, even though
> RegEx-Core RxParser DOCUMENTATION c:syntax:
> description would appear to support this use case.
>
>
> What source of RegEx are you using? Is there a Cuis Package available?
>
>
> Note that I have zero experience with this package but am happy to help out as I get time.
>
> Best wishes,
> -KenD
>
> =========================================================
> https://github.com/garduino/Cuis-Smalltalk-RegEx notes:
>
> 1) Needs requirements (tests should require core should require Squeak compatibility).
>
> 2) Line endings should be newLines.
>
> 3) Needs added compatibility methods, e.g.:
>
> '
> Array>>contains: other
>
> ^ self includes: other
> '
>
> '
> Character>>sameAs: otherChar
> "Case independent compare"
>
> (self class) = (otherChar class) ifFalse: [ ^ false ].
>
> ^(self asLowercase) = (otherChar asLowercase)
> '
> =========================================================
>
>
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
>
>
More information about the Squeak-dev
mailing list
|