Jump to content
php.lv forumi

E-book


cucumber

Recommended Posts

Mastering Regular Expressions 3 edition, kur var novilkt?

Link to comment
Share on other sites

otro dalu atradu vesi, bet gribas 3 dalu, pashu jaunako

Edited by cucumber
Link to comment
Share on other sites

ex, kas parbauda vardu, bet kaut ka negrib darboties ja varda ir mikstinajuma zimes

/^[a-zA-Z-' \xC0-\xff]*$/

Link to comment
Share on other sites

php.net index lapa

Link to comment
Share on other sites

^[\w]$ neder, jo Diāna999 vinsh parada ka ir OK, vajadzigi tikai burti

 

ps. filmas tak citreizs pat atrak sanak novilkt neka pirmizrades :)

Edited by cucumber
Link to comment
Share on other sites

"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.

Link to comment
Share on other sites

ja lai buti a-z,A-Z, bet lai tie varetu but gan anglu vardi, gan lativieshu

Link to comment
Share on other sites

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 by cucumber
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

×
×
  • Create New...