RPG Maker Forums Archive
Search Settings
Home › Game Development Engines › Ruby Game System (RGSS) Scripts › Learning Ruby and RGSSx

Removing Character Patterns from a String

Learning Ruby and RGSSx
S Shabbur
Nov 18, 2015 17:25
How do I remove all sub-strings that begin with '\' and end with ']' in a string?

Ex:

\C[1]A3\I[11]B4
Click to expand...
Turns into:

A3B4
Click to expand...
S Shabbur
Nov 18, 2015 18:21
Nevermind, I got my code to work. Idk what I did before that was a memory issue. :/

Original thread: https://forums.rpgmakerweb.com/threads/removing-character-patterns-from-a-string.50875/

This is an unofficial, read-only archive preserved for the community. Original site: https://forums.rpgmakerweb.com

Want your posts removed? See removal requests or email [email protected]. · Preserved with Forum Ark · Privacy · About