This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Hi there,
Just wondering if someone can provide some insight to the replace function...
Replace function I understand is
Replace (<field that needs replacement>, <string to be replaced>, <what new value is>).
It appears that <what new value is> must be a string. Can it be a string field?
Example:
f1: ...abc...
f2: xyx
replace([f1], "abc", [f2]) doesn't seem to work. I seem to be missing something. Any ideas?
Thanks,
Jeff
Solved! Go to Solution.
Hi @jeffv
I dont know whats the issue. Every field in replace function should be a string all parameters can be passed as fields. And your example works for me.
Hope this helps 🙂
Hi,
Yes thats correct. You can replace your existing string with new string only.
Replace(String, Target, Replacement)
example - Replace("abcdefb", "b", "_")
Output - "a_cdef_"
Thanks.... looks like I made a dumb mistake.... thanks for your insight.