summaryrefslogtreecommitdiff
path: root/test/gsubtst4.ok
blob: 71bf8dcf64bad2eb0e638b18937df36447ed721f (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
33
input          12345
output         gsub(/regex/,"x",input)

regex          output
(^)            x12345
($)            12345x
(^)|($)        x12345x
($)|(^)        x12345x
(2)            1x345
(^)|2          x1x345
2|(^)          x1x345
($)|2          1x345x
2|($)          1x345x
(2)|(^)        x1x345
(^)|(2)        x1x345
(2)|($)        1x345x
($)|(2)        1x345x
.((2)|(^))     x345
.((^)|(2))     x345
.((2)|($))     x34x
.(($)|(2))     x34x
x{0}((2)|(^))  x1x345
x{0}((^)|(2))  x1x345
x{0}((2)|($))  1x345x
x{0}(($)|(2))  1x345x
x*((2)|(^))    x1x345
x*((^)|(2))    x1x345
x*((2)|($))    1x345x
x*(($)|(2))    1x345x
x{0}^          x12345
x{0}$          12345x
(x{0}^)|2      x1x345
(x{0}$)|2      1x345x