RE: [PHP] Re: Remove cahracters in string
| From: | Mike Mapsnac | Date: | Mon, 10 May 2004 20:45:41 +0000 |
| Subject: | RE: [PHP] Re: Remove cahracters in string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-185863@lists.php.net to get a copy of this message | ||
Below is string let's name it A.
ttttttttttttttttttttttttttPhiladelphiaFirstadate05Oct2004tttttttttttttt
I want to get string B. That looks like
PhiladelphiaFirstadate05Oct2004
No characters before Philadelphia and after 20004
From: "Torsten Roehr" <roehr@zilleon.com> To: php-general@lists.php.net Subject: [PHP] Re: Remove cahracters in string Date: Mon, 10 May 2004 22:37:36 +0200 "Mike Mapsnac" <mikerh9@hotmail.com> wrote in message news:BAY15-F35GrRTIupiq400034b0e@hotmail.com... I search on php.net and couldn't find the function. I need a function that will remove characters in the string until it reached the pattern and remove characters in the string after another pattern. The program reads huge file, and remove unnessary data. So I need to remove characters before and after the line. Could you post an example to make absolutely clear what you have and what you want? Thanks. Torsten FedoraPHPLINUXOct72004 _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php_________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/