version0.7.10
This commit is contained in:
parent
4d4b3b1c04
commit
36818817bd
14 changed files with 1011 additions and 0 deletions
9
examples/keyval.nim
Normal file
9
examples/keyval.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Filter key=value pairs from "myfile.txt"
|
||||
import regexprs
|
||||
|
||||
for x in lines("myfile.txt"):
|
||||
if x =~ r"(\w+)=(.*)":
|
||||
echo "Key: ", matches[1],
|
||||
" Value: ", matches[2]
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue