replace

Full name: taxi.stdlib.replace

Signature

declare extension function replace(source: String, searchValue:String, replacement: String):String

Description

Replaces all occurrences of searchValue in source with replacement, returning a new string.

find { order: Order } as {
   cleanRef: String = order.reference.replace('-', '_')
}

Examples

Replaces all occurrences of a substring with a new value.

Try it out

Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed
Next
Welcome to Taxi