[I18NGR] regular expressions και ελληνικά
Dimitrios Michelinakis
dimitris at michelinakis.gr
Fri Mar 13 11:09:32 EET 2009
Exo provlima me ta regular expressions kai tha ithela ligi voithia.
Prospatho na ftiajo ena regex pou ine case-insensitive stin PHP, ara
to regex mou exi parametro "/i". Distixos afto den doulevi, paradigma:
regex: /ΚΙΝΗΤΗΡΑ/i
string: κινητήρα
To parapano den vriski tipota, kathos ta PCRE regular expressions tis PHP
den katalavenoun oti: "Η" == "ή" == "η" == "Ή"
Diladi, vlepoun mono "Η" == "η" kai "Ή" == "ή" jexorista.
Epikinonisa me tous developers tis PHP kai mou ipan oti ine thema PCRE,
etsi epikinonisa me aftous kai mou ipan oti den tous endiaferi to provlima
giati to Unicode standard kani "match" mono dio xaraktires gia kefalea/mikra
kai oxi teseris.
Sigoura boro apo tin PHP na peraso olo to string se kefalea kai meta na trejo
to regex, alla afto den ine lisi, kalitera na diorthona to PCRE kai na doulevoun
ola ta regex sosta se oli tin PHP.
Tha ithela ta sxolia sas parakalo.
Efxaristo kai signomi gia ta greeklish :(
--
Dimitrios Michelinakis
More information about the I18ngr
mailing list