Hey, On 16 April 2012 22:34, Galos, David <galos...@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