|
Beginner help, script to edit text
Hi all,
I am new to this forum, and a novice at javascripting, I wanted to ask if one of you all could help me create a simple script for me.
I need a text box where I can paste a copy like this:
Uncommon Trophy of Rage +0 Faction: druid Quality: Uncommon Type: trophy Level: 0 Might: 320 -2.00% Attack Debuff 15.00% Horsed Load 12.00% Troop Training Speed 24.00% Troop Training Speed 15.00% Attack
A second text box below that then changes the pasted text into this:
Uncommon Trophy of Rage +0 Faction: druid Quality: Uncommon Type: trophy Level: 0 Might: 320 / -2.00% Attack Debuff / 15.00% Horsed Load / 12.00% Troop Training Speed / 24.00% Troop Training Speed / 15.00% Attack
Basically it should just add those 5 forward slashes before each stat on the "item".
I am thinking something like regex, but I have never used that, so please a novice explanation, or if I can even ask for that, create the script for me.
Thank you,
DD
|