regexp
im trying to remove(technically condensing) duplicated strings
var str:String = ActionLoader.data;(lets pretend it reads <BREAK><BREAK><BREAK>hello)
var myPattern:RegExp = /<BREAK><BREAK><BREAK>/g;
str.replace(myPattern, "<BREAK>")
var myPattern:RegExp = /<BREAK><BREAK>/g;
str.replace(myPattern, "<BREAK>")
trace("ActionLoader.data=["+str+"]");
i guess i dont fully understand regexp because this made since to me until i tried it
also tried just the word BREAK without the <> incase it was some sort of escape string nonsense
and tried tinkering with qouting the area between the /"forwardslashes"/
to no avail however the string will remain unmodified,anyone know what i've done wrong?
thanks
