Skip to content

Commit

Permalink
Regex test suit script snippet file.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Sep 20, 2024
1 parent ddb36af commit 207f4a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/regex.zhv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/zhivo

val emailRegex = `(\w+)(\.?\w+)*@(\w+)(\.\w+)+`;
val validEmail = "[email protected]";
val invalidEmail = "test@test";

render! validEmail :: emailRegex;
render! invalidEmail :: emailRegex;

render! validEmail !: emailRegex;
render! invalidEmail !: emailRegex;

0 comments on commit 207f4a8

Please sign in to comment.