0

I have form with some description of it. And i need to change some words inside of it. Everywhere it is written that this is a specialized language, but I just need to rewrite string value. how I can do it? I need to change something like this -> "test 2017 test" to "test 2018 test" I think i need to use some javascript function but I don't know how to do it.

2
  • I suggest you have a look on some beginner tutorials for Javascript. Commented Apr 15, 2017 at 15:26
  • Already dealt with this issue Commented Apr 16, 2017 at 21:44

1 Answer 1

1

This should do:

var str = "Some string containing test 2017 test and other stuff"
Logger.log(str.replace("test 2017 test","test 2018 test"));
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.