>>>>> On Mon, 1 Dec 2008 18:45:44 -0800, Dylan Beaudette <[EMAIL PROTECTED]> >>>>> 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 _______________________________________________ vox-tech mailing list [email protected] http://lists.lugod.org/mailman/listinfo/vox-tech
