Re: [dev] sbase - seq.c: help wanted

From: Connor Lane Smith <cls_AT_lubutu.com>
Date: Mon, 16 Apr 2012 23:15:24 +0100

Hey,

On 16 April 2012 22:34, Galos, David <galosd83_AT_students.rowan.edu> wrote:
> After some testing I realized that my regex was inaccurate--I forgot to
> encase it in '^$'. If everyone here's cool with REG_EXTENDED, I changed it to
> "^([^%]|%%)*%[ +-]?[0-9]*.?[0-9]*[fFgGeE]([^%]|%%)*$"
> Which seemed clearer, and survived more testing.

I'm confused about why we need to use a regular expression here. We
can do this with a few loops and some ifs. Using regexes in seq(1)
really, really concerns me.

cls
Received on Tue Apr 17 2012 - 00:15:24 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 17 2012 - 00:24:05 CEST