Martin Hudec <[EMAIL PROTECTED]> wrote... :
> Hello,
>
> i have document in html and i want to get out string between
> tags to put it into another variable..
>
> i am wondering if i could use eregi() herebut how? I cant figure
> out any possible way... same with strchr() and strstr()
all
day, 10 January 2003 3:22 PM
> To: 'Martin Hudec'; [EMAIL PROTECTED]
> Subject: RE: [PHP] searching for string inside document
>
>
> Use Preg:
>
> // put your html into $html
>
> preg_match('/(.*)<\/title>/Usi', $htlm, $title);
>
>
Use Preg:
// put your html into $html
preg_match('/(.*)<\/title>/Usi', $htlm, $title);
echo $title[1];
** very basic example
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Martin Hudec [mailto:[EMAIL PROTECTED]]
> Sent: Frid
3 matches
Mail list logo