Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- let regex = re("\"(.*)\"")
- let test = "users:((\"ssh\",pid=2908,fd=5))"
- var matches: array[1,string]
- discard match(test,regex,matches)
- echo matches
- outouts empty string: [""]
Advertisement
Add Comment
Please, Sign In to add comment