summary refs log tree commit diff stats
path: root/doc/sets_fragment.txt
Commit message (Expand)AuthorAgeFilesLines
* Misc documentation fixesSimon Ruderich2016-09-171-2/+2
* doc: Trim .txt files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
* Update sets_fragment.txtapense2015-07-081-2/+12
* Documentation renamesdef2015-01-161-2/+2
* fixes #693Araq2014-11-141-1/+0
* Nimrod renamed to NimAraq2014-08-281-1/+1
* Factors common documentation in fragment to avoid repetition.Grzegorz Adam Hankiewicz2014-07-271-0/+40
utines' href='/ahoang/Nim/commit/examples/keyval.nim?h=devel&id=6c2050912166a4960b40c3825afb1a31cfdde0eb'>6c2050912 ^
36818817b ^

1
2
3
4
5
6
7
8
9
                                          
         

                             
                         
                             
                               

 
# Filter key=value pairs from "myfile.txt"
import re

for x in lines("myfile.txt"):
  if x =~ re"(\w+)=(.*)":
    echo "Key: ", matches[0],
         " Value: ", matches[1]