Pronunciation / adjective
Bringing something good and unforseen.
    Skip Navigation Links > Component Library > String Utilities Object
   

The Fortunate.StringUtilities Object - extract strings, pad strings, remove html. It may be used for both windows development and web development.



 

Fortunate.StringUtilities

Download the Fortunate Library Here:

Fortunate Library 32bit - Stand-Alone Install

Fortunate Library 64bit - Stand-Alone Install

Fortunate Library Solution - Source Code

The Fortunate.StringUtilities object contains methods to extract portions of a string, strip all html from a string, and pad a string with spaces which will even show up in a drop down list.

If you've ever tried to put spaces into a drop down list in front of a list item you've probably noticed that you can't. The secret is to properly encode the space. Check the two drop downs below to see the difference.
  1. Dim StringUtilitiesObject As New Fortunate.StringUtilities
  2. PaddedDropDownList.Items.Add(New ListItem(StringUtilitiesObject.Pad(Server, PadLength) & RandomNumber.ToString()))
  3. StringUtilitiesObject.ExtractString(Label.Text, "href=""", """")
  4. StringUtilitiesObject.HtmlStripper(Label.Text)






Here is some <b>html</b> to extract from <a href="www.aboutfortunate.com" target="_blank">About Fortunate</a>


Result:
Microsoft Certified Professional   © 2017 Fortunate.  All rights reserved.
contact: justin@aboutfortunate.com