|
From: Adam J. <aj...@i-...> - 2007-07-18 13:31:44
|
You should check out the Boost.Regex function. This allows you to do regular expression searches on strings. Here are two links you should check out: http://www.boost.org/libs/regex/doc/index.html http://www.onlamp.com/pub/a/onlamp/2006/04/06/boostregex.html I hope this helps. -Adam Jones -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Lloyd Sent: Wednesday, July 18, 2007 4:31 AM To: dev...@li... Subject: [Dev-C++] searching in array 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 |