Regex for Text Input in Godot

If you're looking for an easy way to limit text input to specific characters, this video might help. I was making a little puzzle game where players enter guesses into a field, but I didn't want them entering special characters, numbers, etc. So I wrote a little script that scrapes unwanted characters from the field as they type.

Strangely, this was a feature build into Flash way back in the day. I'm surprised it hasn't been implemented in Godot.

If you're new to RegEx, don't worry about that. We're only going to scrape the surface. No prior knowledge required. 🙌

Looking for other Godot tips? Folks seem to really enjoy my video on Godot Debugging Techniques. You're people, right?