drop dataverse test if exists; | |
create dataverse test; | |
use dataverse test; | |
write output to nc1:"rttest/string_replace1.adm"; | |
let $c1 := replace("abracadabra", "a", "") | |
let $c2 := replace("abracadabra", "a(.)", "a$1$1") | |
let $c3 := replace("darted", "^(.*?)d(.*)$", "$1c$2") | |
let $c4 := replace("hello", "", "-") | |
let $c5 := replace(null, "*", "-") | |
return {"result1": $c1, "result2": $c2, "result3": $c3, "result4": $c4, "result5": $c5} |