Convert a string of text and ad hyperlinks to all the URLs. We loop through each URL and add a hyperlink
Passing in a simple string of text converting it to lowercase and replacing all the spaces with a dash
Checks if the given encoding supports all the characters in the given string
Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.
PHP code example to highlight words in a string.
This function takes in two strings (value,key) and uses XOR encryption to encrypt (and decrypt) the value using the key. it returns the encrypted value as a C++ string. by John Shao
Truncate or limit a text string while still preserving any HTML tags present. The code auto-closes the tags.
C++ source code for Output console text with type-writer effect
In the same way you often need to format data being sent from Flash, you sometimes need to format data being received. This function takes a string and removes all spaces from it. Here we use the split method of the String class to split the string into an Array and then call the join method of the Array class to convert it back to a string....
Search a body of text for the most common words
How to read text file and print its contents to the console line by line.
Source code for KMP String Search Algorithm
To do a Hello world proved to be quite simple, so lets take it a bit further and write a function which prints the hello world text.
C++ code example shown here how to write to text file.
Visual Basic code for inverting text with simple code. Very easy for all beginners. Easy to understand. Compatibility: VB 6 Author of the code: Ben - Ezrah Mansilla Declarations: Add two text box with default name One command with default name
Assigns the contents of a "url" to the string variable "result".
Merges two strings in a way that a pattern like ABABAB will be the result.
Example shown here how to convert String to Date in Java
A simple method that generates a MD5 hash from a given string. It should be compatible with PHP's md5() function (just lowercase the string).
Checks if the given string contains only valid ASCII characters. Returns True if so or False otherwise.