aboutsummaryrefslogtreecommitdiffstats
path: root/test-cases/case4_submatches/script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test-cases/case4_submatches/script.sh')
-rw-r--r--test-cases/case4_submatches/script.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test-cases/case4_submatches/script.sh b/test-cases/case4_submatches/script.sh
new file mode 100644
index 0000000..75e7f6f
--- /dev/null
+++ b/test-cases/case4_submatches/script.sh
@@ -0,0 +1,8 @@
+set file_name = 'taxes.pdf'
+
+case $file_name {
+ (?<base>.*)[.](?<ext>.*) { }
+ .* { echo format error }
+}
+
+echo "file base is $base, file extension is $ext"