cucumber Posted August 28, 2006 Report Posted August 28, 2006 Mastering Regular Expressions 3 edition, kur var novilkt?
cucumber Posted August 28, 2006 Author Report Posted August 28, 2006 (edited) otro dalu atradu vesi, bet gribas 3 dalu, pashu jaunako Edited August 28, 2006 by cucumber
Delfins Posted August 28, 2006 Report Posted August 28, 2006 imho!... standarta manuālis ir OK, pārējais ir atkarīgs no pelēkās vielas..
cucumber Posted August 28, 2006 Author Report Posted August 28, 2006 ex, kas parbauda vardu, bet kaut ka negrib darboties ja varda ir mikstinajuma zimes /^[a-zA-Z-' \xC0-\xff]*$/
Delfins Posted August 28, 2006 Report Posted August 28, 2006 (edited) manuāli vajag lasīt! ^[\w]$ Edited August 28, 2006 by Delfins
v3rb0 Posted August 28, 2006 Report Posted August 28, 2006 manuāli, piem, http://regularexpressions.info un daudz trenēties. regex nevar iekalt lasot teoriju, tā ka par grāmatas pēdējo versiju īpaši neuztrauktos. bet vispār tāda 3edition ir? amazonē nav it kā.
v3rb0 Posted August 28, 2006 Report Posted August 28, 2006 ~96 stundu vecu grāmatu būs pagrūti atrast..
cucumber Posted August 28, 2006 Author Report Posted August 28, 2006 (edited) ^[\w]$ neder, jo Diāna999 vinsh parada ka ir OK, vajadzigi tikai burti ps. filmas tak citreizs pat atrak sanak novilkt neka pirmizrades :) Edited August 28, 2006 by cucumber
bubu Posted August 28, 2006 Report Posted August 28, 2006 "3rd edition" nenozīmē trešo versiju. Papildus editioni grāmatām, cik zinu, iznāk tad, ja ir pieprasījums pēc grāmatas. Saturs no tā nemainās, ja vienīgi tiek izlabotas kļūdas un neskaidrības. Dažos gadījumos tiek uzrakstīta kāda jauna nodaļa. Edit: Ko tev vajag? Lai strings sastāv tikai no a-z? Tad ^\w+$ tev vajag.
cucumber Posted August 28, 2006 Author Report Posted August 28, 2006 ja lai buti a-z,A-Z, bet lai tie varetu but gan anglu vardi, gan lativieshu
v3rb0 Posted August 28, 2006 Report Posted August 28, 2006 (edited) ieraksti alfabetu :) ^/[aābcč....... ž]+/i$ Edited August 28, 2006 by v3rb0
cucumber Posted August 28, 2006 Author Report Posted August 28, 2006 (edited) tas neder, jo ir kodejums ir utf-8, tatad, es nezinu, kadi symboli var but ievaditi varda vieta, bet tiem jabut burtiem. Rodas jautajums vai tadu vispar var uzrakstit? Varbut vajaga lietot mb f-jas? te var vienu novilkt http://www.soft-hard.net/modules.php?name=...mp;news_id=5749 Edited August 28, 2006 by cucumber
bubu Posted August 28, 2006 Report Posted August 28, 2006 RTFM: http://lv2.php.net/manual/en/reference.pcr...n.modifiers.php u (PCRE_UTF8) This modifier turns on additional functionality of PCRE that is incompatible with Perl. Pattern strings are treated as UTF-8. This modifier is available from PHP 4.1.0 or greater on Unix and from PHP 4.2.3 on win32. UTF-8 validity of the pattern is checked since PHP 4.3.5. Un matchos arī tavā utf-8 kodējumā burtus.
Recommended Posts