Re: [PHP] Web Fetch & Process

2004-09-06 Thread Zoran
Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. Also, I managed to delete all HTML code from page (with this code $data[0] = preg_replace("/([<])+([^>])+([.])*([>])+/i","", $data[0]); but also would like to delete all chars except numbers

Re: [PHP] Web Fetch & Process

2004-09-03 Thread Jim Grill
> Zoran wrote: > > >Hi > > > >How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. > > > > > As ucfirst(jim) has pointed out strip_tags is a good first step. However I have > always believed that the best language for parsing html is perl and not >

Re: [PHP] Web Fetch & Process

2004-09-03 Thread raditha dissanayake
Zoran wrote: Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. As jim has pointed out strip_tags is a good first step. However I have always believed that the best language for parsing html is perl and not PHP that's because there is a pe

Re: [PHP] Web Fetch & Process

2004-09-03 Thread Jim Grill
From: "Zoran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 03, 2004 12:35 PM Subject: [PHP] Web Fetch & Process Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. For example, if I have bo

[PHP] Web Fetch & Process

2004-09-03 Thread Zoran
Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. For example, if I have bold text on HTML page (Some text) how can I manage that all bold text on that page is replaced by some other text. Also, I managed to delete all HTML code from page