aboutsummaryrefslogtreecommitdiffstats
path: root/test/gsubtst2.ok
diff options
context:
space:
mode:
Diffstat (limited to 'test/gsubtst2.ok')
-rw-r--r--test/gsubtst2.ok25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/gsubtst2.ok b/test/gsubtst2.ok
new file mode 100644
index 00000000..a038528b
--- /dev/null
+++ b/test/gsubtst2.ok
@@ -0,0 +1,25 @@
+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*((2)|(^)) x1x345
+x*((^)|(2)) x1x345
+x*((2)|($)) 1x345x
+x*(($)|(2)) 1x345x