Re: Remove Dynamic String between StringA and StringB
| From: | memoimyself at yahoo dot com dot br | Date: | Tue, 27 Jan 2004 00:31:11 +0000 |
| Subject: | Re: Remove Dynamic String between StringA and StringB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175840@lists.php.net to get a copy of this message | ||
Hello 24 fan,
On 27 Jan 2004 at 0:56, Jack Bauer wrote:
> i'm looking for a function to remove multiple dynamic parts
> of a string, there are only the start and end strings given
>
> (remove all between string A and string B)
>
> got somebody a working procedure for that?
I'm not sure I understand you correctly, but it seems to me that you need to use regular
expressions. You haven't provided us with an example or with strings "A" and
"B", so it's
kinda difficult to give you any specific help. Suggestion: read up on Regular Expression
Functions (Perl-Compatible) in the PHP manual (chapter XC in the Function Reference
section).
If you're not familiar with regular expressions and find the PHP manual too difficult as a
starting point, you'll find a pretty good introductory guide, courtesy of the Dark Side of
the Force, at
http://msdn.microsoft.com/library/en-us/script56/html/js56reconIntroducti
onToRegularExpressions.asp
Have fun,
Erik