Replace String Snippets


11 August, 2012   

MySQL code to find and replace string

This stored sql procedure is used to replace a special character (or string) of your field with another string.

23 November, 2013   

You can search and replace fields by below query in MySQL Database

22 June, 2014   

To test in other timezones, replace '-5' with your local standard time GMT offset.

05 November, 2015   

MYSQL code sample to replace a NULL with a given value.

I would like to find the position of the last occurrence of a character in a string and print every thing after that.

13 December, 2011   

You can use to find and replace text in a variable. This script created by Bruce Phillips, one of the leading posters at MacScripter.

28 June, 2012   

Function to generate soundex code for any string (usually a name). Conforms to Knuth's algorithm and the common Perl implementation.

10 June, 2017   

C++ source code useful string functions

23 February, 2015   

Some example useful C code of string functions

01 October, 2014   

PHP example code for secure link conversion

19 April, 2016   

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).

01 February, 2011   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible, because...

17 February, 2019   

Missing images will either just display nothing, or display a [ ? ] style box when their source cannot be found. Instead, you may want to replace that with a "missing image" graphic that you are sure exists so there is better visual feedback that something is wrong. Or, you might want to hide it entirely. This is possible because...

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.

25 August, 2014   

The function NVL replaces null values with a stated value. In this example the rc.customer is assigned the number '0' if it is null.

11 October, 2011   

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....

Does url_decoding while respecting utf8 characters.

Does url_decoding while respecting utf8 characters.

30 October, 2013   

Find a key from a list of values​​. parameters: sbValues​​: List of Values 'A;B;C;D' sbToken: Key 'B' sbSeparator: ',' or any defined sbValues