Skip to main content
added 45 characters in body
Source Link
Seph Reed
  • 275
  • 4
  • 10

The way to find and replace text in javascript from regex is like so: text.replace(/a+/g, "@");

"ab".replace(/./g, (match) => match + "&"); // outputs: a&b& 

What is the equivalent function or functions in gdscript?

The way to find and replace text in javascript from regex is like so: text.replace(/a+/g, "@");

What is the equivalent function or functions in gdscript?

The way to find and replace text in javascript from regex is like so:

"ab".replace(/./g, (match) => match + "&"); // outputs: a&b& 

What is the equivalent function or functions in gdscript?

Source Link
Seph Reed
  • 275
  • 4
  • 10

How do I find and replace text with regex in Godot?

The way to find and replace text in javascript from regex is like so: text.replace(/a+/g, "@");

What is the equivalent function or functions in gdscript?