SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : Dynamic HTML :

Previous DiscussionNext Discussion
 Determining the text length of a formated HTML text

Hi !

Please, help me!
I want to determine dynamically the length of a formated HTML string.

For example, having the string:

myStr = "Hello there!";

the return value must be 12, NOT 49

Thanks!

Started By mad_horax on Oct 30, 2007 at 12:36:04 AM
This message has been edited.

4 Response(s) | Reply

Earlier Replies | Replies 4 to 4 of 4 | Later Replies
bod1467 on Oct 31, 2007 at 12:56:44 AM (# 4)

You need a regular expression to remove everything between < and > characters (including them). The only caveat is if the string itself uses one of these characters ... e.g.

myStr = "20 is > 10";

This page gives an example.


Earlier Replies | Replies 4 to 4 of 4 | Later Replies

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.