cwbe coordinatez:
101
63540
2076399
856608
3761796
3761948

ABSOLUT
KYBERIA
permissions
you: r,
system: public
net: yes

neurons

stats|by_visit|by_K
source
tiamat
K|my_K|given_K
last
commanders
polls

total descendants::
total children::1
show[ 2 | 3] flat


co mash robit , mozes zacat citat API ;)

match(string[, pos[, endpos]])
If zero or more characters at the beginning of string match this regular expression, return a corresponding MatchObject instance. Return None if the string does not match the pattern; note that this is different from a zero-length match.

v tom prvom riadnu halusku pises ;) ono to trosku inak funguje pozri priklady:

http://docs.python.org/lib/matching-searching.html






00000101000635400207639900856608037617960376194803762555
mimmon
 mimmon      05.03.2008 - 07:47:10 (modif: 05.03.2008 - 07:48:55), level: 1, UP   NEW !!CONTENT CHANGED!!
ono to funguje aj bez compile, ak zadas pre match dva argumenty a nemas to skompilovane, tak prvy je regexp a druhy je string, takze sa to v jednom kroku skompiluje aj vyhodnoti ...
a co je na tom prvom priklade haluska?

ale teraz ma napada, ze ja som to robil vzdy cez podmienku:
if re.match(...): print 'Ok'
a tym, ze vytvori ten objekt, tak to znamena, ze podmienka je True, takze to je tak ako ma byt. uz som to aj vyskusal a funguje to tak ako ma (a ako to vzdy fungovalo) :)


>>> rexp = '.+.dd[odm]'
>>> file2send = 'mop2032j.08o'
>>> if re.match(rexp,file2send): print 'Matchuje'
else: print 'Nematchuje'

Matchuje
>>> rexp = '.+.dd[odm]Z'
>>> if re.match(rexp,file2send): print 'Matchuje'
else: print 'Nematchuje'

Matchuje
>>> file2send = 'mop2032j.08d.Z'
>>>
>>> if re.match(rexp,file2send): print 'Matchuje'
else: print 'Nematchuje'

Nematchuje


problem, preco mi neslo to vyhodnocovanie spravne bol v tom, ze aj ked som myslel na to, ze treba tam napisat aj koniec stringu, namiesto Z som tam napisal tusim w alebo nejaku podobnu hovadinu.

Anyway, dakujem.