Arduino, primarily known for interacting with hardware, also includes basic string manipulation capabilities through its String object.
String
Let’s do some string-joining!.
Arduino’s String object has a handy toLowerCase() method.
toLowerCase()
Let’s say we want to drop all numeric digits from our string.
Arduino strings can be sliced and diced using substring().
substring()
Back in the day, C programmers used the strlen() function from <string.h>, counting characters until a null-terminator.
strlen()
<string.h>
Arduino doesn’t have built-in string interpolation, but you can get similar results with sprintf() or by concatenating strings and variables.
sprintf()
To remove quotes from a string in Arduino, you can loop over the characters and rebuild the string without the quote characters.
Arduino doesn’t natively support string search and replace in the way high-level languages do.
Arduino does not have built-in support for regex directly in its standard library.