[squeak-dev] [Cuis] Regular Expressions

Phil B pbpublist at gmail.com
Fri Nov 25 22:53:49 UTC 2016


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

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20161125/6fc7bc47/attachment.html>


More information about the Squeak-dev mailing list