diff --git a/test/regex.zhv b/test/regex.zhv new file mode 100644 index 0000000..2c2ad4c --- /dev/null +++ b/test/regex.zhv @@ -0,0 +1,11 @@ +#!/bin/zhivo + +val emailRegex = `(\w+)(\.?\w+)*@(\w+)(\.\w+)+`; +val validEmail = "test@test.com"; +val invalidEmail = "test@test"; + +render! validEmail :: emailRegex; +render! invalidEmail :: emailRegex; + +render! validEmail !: emailRegex; +render! invalidEmail !: emailRegex;