ilovesoup | c9fef1d | 2012-07-08 19:30:42 +0000 | [diff] [blame] | 1 | drop dataverse test if exists; |
2 | create dataverse test; | ||||
3 | use dataverse test; | ||||
4 | |||||
5 | write output to nc1:"rttest/string_replace1.adm"; | ||||
6 | |||||
7 | let $c1 := replace("abracadabra", "a", "") | ||||
8 | let $c2 := replace("abracadabra", "a(.)", "a$1$1") | ||||
9 | let $c3 := replace("darted", "^(.*?)d(.*)$", "$1c$2") | ||||
10 | return {"result1": $c1, "result2": $c2, "result3": $c3} |