[Sc-devel] regexp support revisited :)
Florian Schmidt
mista.tapas at gmx.net
Sat Nov 3 23:51:08 PST 2007
On Saturday 03 November 2007, Florian Schmidt wrote:
> On Saturday 03 November 2007, Florian Schmidt wrote:
> > > e.g.
> > > "sesame seeds".findRegExp("s.*e")
> > > [[0, "se"], [2, "same"], [7, "see"]]
> > >
> > > This would give more flexibility (because of course it's easy to find
> > > the lengths from the above result).
> >
> > Sure. I thought about this, too, for the same reason. But i was too lazy
> > to look at how to create strings ;)
>
> Ok, this version (see attachment or below) shows this behaviour besides
> some additional bugfixes ;) This version also behaves more like the
> String.find() in that it doesn't return the match position relative to the
> offset anymore but also relative to the start of the string..
Oops, this version has serious troubles with the GC ;) Any advice?
Flo
--
Palimm Palimm!
http://tapas.affenbande.org
More information about the Sc-devel
mailing list