From: Robert D. <rob...@gm...> - 2015-10-18 21:10:24
|
On 2015-10-18, Volker van Nek <vol...@gm...> wrote: > In share/stringproc there is an alternative regex parser (portable regex > parser by Dorai Sitaram) with an interface at Maxima level. > > It works nicely but it appears to be quite slow. Thanks for the reminder, I had forgotten about that. I suspect that sregex is strictly more powerful than nregex; I'd be surprised if nregex were any faster, but that is not a key point. Also it's helpful that there is a Maxima interface for sregex. Given all that, I'm in favor of moving sregex into src and nuking nregex. There are a few calls to nregex in src, but those would be easily replaced by sregex, I believe. > When parsing RGBident with ibase:16 the parser wants hex-numbers > starting with an alphabet-character to be zero-prefixed, Yes, good point. I forgot about that too. best, Robert Dodier |