summaryrefslogtreecommitdiff
path: root/tests/exslt/strings/replace.1.out
blob: f41d67cc67b9a4f5c80eef8f50bbfea7c5cde6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0"?>
<out>;
        result nodes: 1
        result text nodes: 1
        result string: a

	str:replace('a, simple, list', ', ', '-')
	a-simple-list

	str:replace('a, simple, list', 'a, ', 'the ')
	the simple, list

	str:replace('a, simple, list', 'list', 'array')
	a, simple, array

	str:replace('a, simple, list', 'i', 'I')
	a, sImple, lIst

	str:replace('a, simple, list', ', ', '')
	asimplelist

	str:replace('fee, fi, fo, fum', $x, $y)
	tee, eye, billow, a longer string

	str:replace('fee, fi, fo, fum', $x, 'j')
	j, , , 

	str:replace('foo', '', 'baz')
	fbazobazo

	str:replace('Price is $1.10', $from, $to)
	Price is \$1.10</out>