I tried the script and gott an error . I did a web search and found the
following which fixed the problem .

> >
               > > >I found a script written by Tom Christiansen called
striphtml.
               > > >Unfortunately, I get an error when running the
script, and I was
               > > >wondering if any regular expression folks out there
could help me
               > > out.
               > >
               > > That's due to a regex bug-fix which went into 5.004
(IIRC).
               > > You can avoid the problem using this variation to the
snippet you
               > > gave:
               > >
               > > s{ <                    # opening angle bracket
               > >     (?:                 # Non-backreffing grouping
paren
               > >          [^>'"] +       # 1 or more things that are
neither > nor 'nor
               > > "
               > >             |           #    or else
               > >          ".*?"          # a section between double
quotes (stingy
               > > match)
               > >             |           #    or else
               > >          '.*?'          # a section between single
quotes (stingy
               > > match)
               > >     ) *                 # repetire ad libitum
               > >                         #  hm.... are null tags <>
legal? XXX
               > >    >                    # closing angle bracket
               > > }{}gsx;                 # mutate into nada, nothing,
and niente
               > >

Don Leslie

Reply via email to