I want to use the regex module of the nim library:
import re
var s="""<webSettings>
<add key="MyLaborPassword" value="shadowed" />
<add key="MyLaborUserID" value="shadowed" />
<add key="MyLaborUrl" value="shadowed" />
<add key="DebugSoapLoggingEnabled" value="false" />
</webSettings>
"""
var matches : seq[string] = @[]
echo s.find(re"""MyLaborP(ass)word""",matches)
echo matches
Gives me
25
@[]
but i except:
25
@["ass"]
what have i missed?