Finally, I found y answer to my ereg/grep question. Thanks to all those who took a stab at it. You led me to the answer. For all those interested in reg-parsing comma-delimited lists, here is what I searched for:
'^<INPUT TYPE = \"HIDDEN\" NAME = \"numbers\" VALUE = \"[0-9,\"]*[\",]" . $numbertosearch . "[\",][0-9,\"]*>$' It was much simpler than I thought it would be. Thanks again! __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus – Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php