Re: HTML string get length



On Mon, 28 Nov 2005 13:06:09 -0000, "Tony Proctor"
<tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>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 ? ;-)

--

Regards, Frank
.



Relevant Pages

  • Re: HTML string get length
    ... arbitrary HTML ... >>(and even XML), and doesn't use Regular Expressions and stuff ... > Rick is possessing Tony? ...
    (comp.lang.basic.visual.misc)
  • Re: Serious Perl Regular Expression deficiency?
    ... I started doing Perl 2 years ago and have ... > conclusion that regular expressions have a serious ... This is serious because the not string ... If you want to pull out the contents of XML comments you could do this. ...
    (comp.lang.perl.misc)
  • Re: http xml encoding
    ... See for your first problem this thread where Ger had in my opinion the same ... imagestring As Byte) As String ... Private Function DeserializeString(ByVal _ ... > I'm sending an xml stream through an http connection to my webserver. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Error: Name cannot begin with the 0 character, hexadecimal value
    ... that error is a standard XML error message - Exchange requires you to sent invalid xml to the server. ... Private Function ReadTask ...
    (microsoft.public.exchange.applications)
  • Re: Oh great gurus of the list, I need help with a regular expression please
    ... I have a perl file that will read an XML file and search ... Regular expressions are not the correct tool for this job. ... Regular expressions cannot parse XML. ... Although being able to use $/ as a regex would be rather nifty, ...
    (comp.lang.perl.misc)