SOLVED Replacing issues

Post Reply
Thorr686
Posts: 8
Joined: Sun Aug 29, 2010 3:22 am

SOLVED Replacing issues

Post by Thorr686 »

Im having some trouble replacing text.

For example I want to replace

(name) is in perfect shape.

with

PERF PERF PERF PERF PERF PERF (name) PERF PERF PERF PERF PERF PERF

and make the text perf be blue.

I tried doing

(.*) is in perfect shape. as my regular expression

selectCaptureGroup(0)
replace("PERF PERF PERF PERF PERF PERF" ..matches[2].. " PERF PERF PERF PERF PERF PERF")


as a starting point but it did not work. Nothing shows up

also how do i post code on the forum.

Thanks in advance, im a super noob to this and im trying to get a handle for the commands, but it doesnt seem to work for me at all :(
Last edited by Thorr686 on Mon Dec 13, 2010 11:22 pm, edited 1 time in total.

Thorr686
Posts: 8
Joined: Sun Aug 29, 2010 3:22 am

Re: Replacing issues

Post by Thorr686 »

figured it out myself using the debug thing. nice feature :) thanks

Post Reply