regex

Programovacie jazyky, rady, poradňa...
Flowy
Medium Expert
Medium Expert
Príspevky: 83
Registrovaný: 26 okt 2007, 18:52

regex

Príspevok od používateľa Flowy »

potreboval by som vytvorit regex ktory vyhodnoti:

this ako true - this
thiss ako true - \bthis
thi.s ako true - thith[[:punct:]]s
th.is ako true ... aj znaky ako * space alebo podobne - ?
tthis ako false - \bthis
and this ako true

takze \bt[[:punct:]]?h[[:punct:]]?i[[:punct:]]?s
//tak som to nasiel :)
Napísať odpoveď