One of the problems is there are so many ways that the string could be written depending on whether it referred to a couple, individual, or company. This mean you would need to write many Rx(s) to catch all the possibilities, and you still might not have an Rx that is bullet proof. If you're using perl, Activestate has a doc on Rx that might be helpful.
http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/Pod/perlrequick.html or http://tinyurl.com/3c9suw Regards, LelandJ Frank Burcaw wrote: > I'm about ready to throw in the towel. > > Let's say I have the strings "JONES, ROBERT" , "ROBERT JONES INC" , > and "JONES, ROBERT & JOAN" > > I'm trying to use a regular expression to determine if the sting is > an individual (or couple) or not so I came up with [\sA-Z]+,[\sA-Z&]+ > > It works pretty good, but I realized that the user could enter a > comma before the word INC, LLC, CORP etc, like "ROBERT JONES, LLC". > > I certain that there is a way to do this, but after wasting several > hours, I'm beginning to think that there isn't. > > Best regards, > > Frank > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

