thank you for your help Leonel !!! Is very closed that i need.
>m = REGEX_URI.match(ruri)
('Microsoft Access Driver (*.mdb)',
'192.168.1.182',
'c:\\v3.old.mdb',
'admin',
'incas')
is not a dict and if use the m('db') i get the same list
>m('db')
('Microsoft Access Driver (*.mdb)',
'192.168.1.182',
'c:\\v3.old.mdb',
'admin',
'incas')
can you help me to get a dict with <host>,<db>, <user>, <password>,
<driver>?
I use the followings:
REGEX_URI=
re.compile(r'DRIVER=\{(?P<driver>[^}]+)\}\;SERVER=(?P<host>[\d\.]+);DBQ=(?P<db>[^;]+);UID=(?P<user>[^;]+);PWD=(?P<password>.+)'
ruri='DRIVER={Microsoft Access Driver (*.mdb)};SERVER=192.168.1.182;
DBQ=c:\\v3.mdb;UID=admin;PWD=****'
m = REGEX_URI.match(ruri)
Τη Δευτέρα, 3 Νοεμβρίου 2014 6:33:47 μ.μ. UTC+2, ο χρήστης Leonel Câmara
έγραψε:
>
> ksotiris here's a possible solution
>
> REGEX_URI=
> r'DRIVER=\{(?P<driver>[^}]+)\};SERVER=(?P<host>[\d\.]+);DBQ=(?P<db>[^;]+);UID=(?P<user>[^;]+);PWD=(?P<password>.+)'
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.