Re: [PHP] regular expression for (NOT 'word')

2002-03-16 Thread scott furt
Try this... it should only print out "Some webpage data" $text = " script data. Some webpage data another script data "; print preg_replace('/(.*?)<\/script>/', '', $text); Ando Saabas wrote: > Ok let me explain my problem further some. I need the regular expression to > purify the html pa

Re: [PHP] regular expression for (NOT 'word')

2002-03-14 Thread Michael Sims
At 05:52 PM 3/14/2002 +0200, Ando Saabas wrote: >Ok let me explain my problem further some. I need the regular expression to >purify the html page from script tags: >I used: $file = eregi_replace("(.*)", " ", $file); >Now this works fine, until theres a webpage like: > >script data. >Some webpage

Re: [PHP] regular expression for (NOT 'word')

2002-03-14 Thread Ando Saabas
Ok let me explain my problem further some. I need the regular expression to purify the html page from script tags: I used: $file = eregi_replace("(.*)", " ", $file); Now this works fine, until theres a webpage like: script data. Some webpage data another script data so the regexp above replaces

RE: [PHP] regular expression for (NOT 'word')

2002-03-14 Thread Rick Emery
the best you can do is: -Original Message- From: Ando Saabas [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 9:33 AM To: [EMAIL PROTECTED] Subject: [PHP] regular expression for (NOT 'word') how would i build a regular expression in php that would match everything but the giv