Regular expression problem
by Reywob(at)aol.com
|
Date: |
Thu, 20 Sep 2001 09:10:00 EDT |
To: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
Hi,
Using javascript, I'm trying to match all occurences of:
<script ...>
but not those which are like
<script ...> [some whitespace]
<![CDATA[
I have tried to use the following expression:
foo.replace(/<script(.*)>\s*[^<!\[CDATA\[]/gi, "bar")
but it refuses to work.
Can anyone help? I've reached the end of my regex knowledge now...
Many thanks,
Peter.
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA