Do you have control on the input data? E.g. are or are not the input originated from the entropy source known as end users? -----Original Message----- From: Herhuth, Ron To: php-windows@lists.php.net Sent: 2003-11-06 14:54 Subject: String Help I have an instance where I am trying to remove a couple different string scenerios from a variable. I have spent some time with regEx but I'm not getting anywhere. I'm hoping someone could help me out here. Basically I have names that MAY contain middle initials which I need to remove: John D. Smith I need to strip the "D." so that I have only John Smith In addition I have a few instances where the name contains a secondary last name in parentheses that I need to remove: Joanne (Taylor) Smith I need to strip the Taylor so that I am left with Joanne Smith. If anybody could help me with this I would be very appreciative. Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php