Some problem with replace()
Posted: Wed Mar 19, 2014 4:33 pm
Hi!
I have some problem with replace()
pattern(perl regex): (1,2,3,4)
code
selectString(matches[2], 1)
replace(matches[2].." [GL]")
Text from mud:
5, 6, 1, 8, 2
is
5, 6, 1 [GL], 8, 2
should be:
5, 6, 1 [GL], 8, 2 [GL]
What I'm doing wrong?
I have some problem with replace()
pattern(perl regex): (1,2,3,4)
code
selectString(matches[2], 1)
replace(matches[2].." [GL]")
Text from mud:
5, 6, 1, 8, 2
is
5, 6, 1 [GL], 8, 2
should be:
5, 6, 1 [GL], 8, 2 [GL]
What I'm doing wrong?