[vox-tech] ARE (Tcl / Postgresql) REGEX question

Wes Hardaker wjhns156 at hardakers.net
Tue Dec 2 05:49:12 PST 2008


>>>>> On Mon, 1 Dec 2008 18:45:44 -0800, Dylan Beaudette <debeaudette at ucdavis.edu> said:

DB> ([0-9]?[\\.]?[0-9][Y|y|R|r]+[ ]+?[0-9]/[0-9]).*?([0-9]?[\\.]?[0-9][Y|y|R|r]+[ ]+?[0-9]/[0-9])
Add '|' here:   ^

to become ...[0-9]|)

Which will let the second pattern match against nothing so you'll get an
empty string as the result.


However, what if you need to match against 100 colors?  It would be
better to loop over the string multiple times until no further matches
are found.

-- 
"In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find."  -- Terry Pratchett


More information about the vox-tech mailing list