It’s worth mentioning that this approach is case sensitive. Replace() does not change the value of str, rather it returns a new string with the applied replacements (this example doesn’t do anything with the returned string, but you’d probably want to). The most obvious way to do string replacement is by passing 2 strings to replace(), the string to find and the string to replace it with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |