| String

| Reference for Wiring 1.0 (ALPHA) 0021+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class |  | String
Name |  | ### replace()
Examples |  |
    String str = "CCCP";
    str.replace('C','1');
    Serial.println(c1);  // Prints '111P'
Description |  | Replaces all occurrences of chr1 in this string with chr2.
Syntax |  |
    replace(chr1, chr2)
Parameters |  |
chr1 |  | char: the character to be replaced
chr2 |  | char: the replacement character
Returns |  | none
Usage |  | Web & Application