"Replace" function for Strings, Text Objects, and Variables

Looks like @ddabrahim actually compiled a list of String Manipulation functions that would be super useful to have back in April: Word game with gdevelop? - #7 by ddabrahim

4ian already responded around which already exist, but I definitely feel like there’s no easy way to replicate Replace currently. There was mention of a card being created, but I’m not finding it on Trello.

Here’s there reference material I could find for the ones that seem to be missing.
Javascript Replace method : JavaScript String replace() Method
Javascript function to Count Character occurrence: JavaScript function: Letter count within a string - w3resource
Javascript Function to Count String Occurrence: JavaScript: Count the occurrence of a substring in a string - w3resource
Javascript String Trim method: JavaScript String trim() Method
Javascript function to count whitespace: javascript - Count Space(s) in a string - Stack Overflow
Javascript CharAt method: JavaScript String charAt() Method
Javacript Split method: JavaScript String split() Method (This one might be super difficult because we don’t have normal arrays…so it’d have to like, split them into a Container variable and a bunch of sub variables)

In general, it’d be nice that we have some way to do everything on this list (that makes sense in the engine): The Top 15 Most Popular JavaScript String Functions - Vegibit

Thank you both for your effort and time on this, whenever you get to it!

1 Like