Operations: how to filter text messages on iPhone
You could send the SMSes through an online service like Google Voice that might be able to do content filtering (or at least would forward certain ones to email to filter).