Re: HTML string get length



> >Here's a very simple function to do that David. It copes with
arbitrary HTML
> >(and even XML), and doesn't use Regular Expressions and stuff
> >
> >Private Function lLenHTML(sHTML As String) As Long
> > lLenHTML = Len(Join(Filter(Split(Replace(Replace(sHTML, "<",
"<" &
> >Chr(1)), ">", "<"), "<"), Chr(1), False), ""))
> >End Function
> >
> Bloody hell, this is shades of The Exorcist.
> Rick is possessing Tony ? ;-)

There are tears of joy running down my face after seeing Tony's
posting.<g>

Rick


.



Relevant Pages

  • Re: HTML string get length
    ... It copes with arbitrary HTML ... >(and even XML), and doesn't use Regular Expressions and stuff ... >Private Function lLenHTMLAs Long ...
    (comp.lang.basic.visual.misc)
  • Re: Regular expressions
    ... Thank you Rick ... >> Can someone please show how to use Regular expressions to ... > ' lower case letters and digits. ... > newsgroups devoted exclusively to .NET programming. ...
    (microsoft.public.vb.syntax)
  • Re: ms access / foxpro / ole db
    ... If it's a question of view or reporting on VFP data an easy way is to make ... an XML file in VFP with CURSORTOXML or tjhe XMLAdapter class, ... XML as the datasource of a tabel in an Access Mdgb. ... >> Hi Rick ...
    (microsoft.public.fox.helpwanted)
  • Re: XML has been banished from Usenet for a very good reason.
    ... Rick wrote: ... >> XML has been banished from Usenet for a very good reason. ... The trick to replying to a Relf post is to not answer any of the points in ...
    (sci.physics)
  • Re: Simplest way to do several matches?
    ... > until you're pretty confident with them, ... than with "normal" regular expressions, yet they are still quite flexible in ... Rick - MVP ...
    (microsoft.public.vb.syntax)