Guest User

Untitled

a guest
Dec 11th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import re
  2.  
  3. let regex = re("\"(.*)\"")
  4. let test = "users:((\"ssh\",pid=2908,fd=5))"
  5. var matches: array[1,string]
  6.  
  7. discard match(test,regex,matches)
  8. echo matches
  9.  
  10.  
  11. outouts empty string: [""]
Advertisement
Add Comment
Please, Sign In to add comment