Posted by ImOk on 05/23/06 06:31
Based on your suggestions, I finally figured out a solution. $strList="aabbcc\raaxxdd\rbbaacc\rbcxxx\rcaaxx\rcbxx\rabcdr\rbcd"; $arrList=split("\r", $strList); $arrFiltered=preg_grep("/^b(.+)/",$arrList); Split string into the array components and using preg_grep filter only the elements that start with 'b' Thanks
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming