FT3 Posted June 6, 2012 Report Share Posted June 6, 2012 sveiki , tatad ir ķibele neiznu ka lai pievienot latviešu burtus 'žšāā' un tt kods izskatas šadi. function symbolCheck($input){ if (preg_match("/[^A-Za-z0-9\:\/\.\_\-]/", $input)){ return true; } } vai nu iesakat ko citu preg_match vieta. paldies. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 6, 2012 Report Share Posted June 6, 2012 http://php.net/manual/en/regexp.reference.unicode.php Quote Link to comment Share on other sites More sharing options...
FT3 Posted June 6, 2012 Author Report Share Posted June 6, 2012 ir vel kadi varianti ? jo isti nesaprotu doto informāciju tāja linka. Quote Link to comment Share on other sites More sharing options...
WHOAMi Posted June 6, 2012 Report Share Posted June 6, 2012 (edited) ir vel kadi varianti ? jo isti nesaprotu doto informāciju tāja linka. daGreivis tev jau izdarīja lāča pakalpojumu. Ja vēl kas nav skaidrs, tad varbūt pamēģini izmantot Google Translate. Ja nesanāk izštukot, varbūt kārtīgi gūglējot atrastu šo: http://www.regular-expressions.info/unicode.html No offense! Edited June 6, 2012 by WHOAMi Quote Link to comment Share on other sites More sharing options...
Kavacky Posted June 7, 2012 Report Share Posted June 7, 2012 Lāča pakalpojums vispār jau nozīmē sliktu. ;) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 7, 2012 Report Share Posted June 7, 2012 Esmu lācis! Quote Link to comment Share on other sites More sharing options...
codez Posted June 7, 2012 Report Share Posted June 7, 2012 Nu ja - lāča pakalpojumu - norādīja, kur meklēt, bet nenorādīja pietiekami precīzi, lai saprastu. Citi tagad domā, ka ir jau pietiekami labi norādīts un tuvāk nenorādīs kā risināt problēmu. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 7, 2012 Report Share Posted June 7, 2012 https://gist.github.com/2888469 Quote Link to comment Share on other sites More sharing options...
daGrevis Posted June 7, 2012 Report Share Posted June 7, 2012 Programmētājam svarīgi ir pašam mācēt atrast un izdomāt. Nevajag jau iebakstīt sejā (kā es iepriekšējā postā izdarīju)! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.