I would like to replace these characters with an underscore, and then remove all the duplicate words.
For instance, I'd like to change:
- Code: Select all
dmg_sm0993_event (summonedtable) 0039-event [damage=hit_defend_fail_se_0039_type=slash_low] [damage_fail_type=defend_fail] {!} {r} {m} {s} {e}
To (both "{}" and characters inside are not needed.)
- Code: Select all
dmg_sm0993_event_summonedtable_0039_damage_hit_defend_fail_se_type_slash_low