|
From: Per W. <pw...@ia...> - 2007-07-18 08:25:57
|
The same way you would do it if you just have a single string. Just add a loop to iterate through all entries in the array and perform your pattern matching for each entry. /pwm On Wed, 18 Jul 2007, Lloyd wrote: > Hi, > I have an array of strings. I want to search in the array for a > particular pattern. As an example let the content in the array be > > this > thi > this is > hello > t > text > hi > > If I give a search term like "t*" (something like regular expression) it > must return > > this > thi > this is > t > text > > > How can I accomplish this? > > Thanks and Regards, > Lloyd > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |