v2 / cmd / tools / vvet / tests / confusing_regex.vv
7 lines · 6 sloc · 149 bytes · 73060f1b1d711370a8031929f16e5c8624585038
Raw
1import regex
2
3fn main() {
4 _ := regex.regex_opt(r'foo|bar') or { panic(err) }
5 mut re := regex.new()
6 re.compile_opt(r'zip|zap') or { panic(err) }
7}
8