Re: Can I get the text from a string that is between two strings?
| From: | Leopoldo | Date: | Mon, 06 Nov 2000 16:15:36 +0000 |
| Subject: | Re: Can I get the text from a string that is between two strings? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23909@lists.php.net to get a copy of this message | ||
better with eregi (case insensitive :] )
> prueba con
> if( ereg("<txtbody>(.*)</txtbody>", $text, $result) ) {
> $ok = $result[1];
> }
>
> > I need to get from a string the text between two xml tags.
> > For example: The large string is:
> >
> > <article>
> > <title>here goes title</title>
> > <txtbody>Here goes the body of the article</txtbody>
> > </article>
>
> Salutem
> JCarlos Sanz
> juanrak@svalero.es
>
>
>
>