Matt
Searchreplace (134)
A1: Variable Set [ Name:%replacewiththis To:RED Do Maths:Off Append:Off ]
A2: Variable Set [ Name:%searchreplace To:BLUE Do Maths:Off Append:Off ]
A3: Variable Set [ Name:%fileslista To:I want to replace BLUE Do Maths:Off Append:Off ]
A4: JavaScriptlet [ Code:var searchrep = new RegExp(searchreplace,"g"); var fileslistc=fileslista.replace(searchrep,replacewiththis) Libraries: Auto Exit:On Timeout (Seconds):45 ]
A5: Flash [ Text:%fileslistc Long:Off ]
The flash should be "I want to replace RED"
I expected it to be much more complicated, but it's not!
It will be much easier to help you if you can share the Tasker profile description by positing it. To export a description, long press on the profile to select it; tap the menu icon; from the popup menu select Export; select Description To clipboard. Paste the clipboard contents into a post.
Hope you find this helpful...
Javascript is an interpreted language supported by browsers and Tasker. Usually one means javascript if speaking of scripts or JS code.
Java code is a compiled language, with nothing in common with javascript. Other terms commonly associated with java code is JAR files and Java Virtual Machines.
Tom