Pogledajte određenu poruku
Staro 27. 02. 2008.   #4
godza
Goran Radulović
Professional
 
Avatar godza
 
Datum učlanjenja: 06.06.2005
Lokacija: Novi Sad
Poruke: 259
Hvala: 8
3 "Hvala" u 2 poruka
godza is on a distinguished road
Pošaljite ICQ poruku za godza Pošaljite poruku preko MSN za godza
Default

Citat:
Originalno napisao bluesman Pogledajte poruku
Samo stavi modifier /U na kraju:

PHP kôd:
preg_match_all('/\{lang(.*)\}(.*)\{\/lang\}/U'$string$results); 
E, kul, radi. Šta radi to U na kraju?

Citat:
This modifier inverts the "greediness" of the quantifiers so that they are not greedy by default, but become greedy if followed by "?". It is not compatible with Perl. It can also be set by a (?U) modifier setting within the pattern or by a question mark behind a quantifier (e.g. .*?).
Našao sam. Hvala još jednom.
__________________
Never show weakness, the only pain that matters is the pain you inflict.

Poslednja izmena od godza : 27. 02. 2008. u 23:23.
godza je offline   Odgovorite uz citat