![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 57 Pomógł: 0 Dołączył: 5.05.2010 Ostrzeżenie: (0%) ![]() ![]() |
Mam następujący kod źródłowy html:
chcę wyciągnąć dane za pomocą preg_match_all ale za cholerę nie idzie mi definowanie ciągu lipa Chciałbym aby brało tekst począwszy od ciągu   i zatrzymywało się gdy znajdzie pustą nową linię. Kombinowałem z ułatwieniem sobie pracy chcąc usunąć nowe linie: ale funkcja nie dawała żadnych rezultatów, stąd nie galopowałem z \n to preg_matcha. Tak jakby nowe linie były jakoś inaczej zdefiniowane? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 675 Pomógł: 286 Dołączył: 15.06.2009 Skąd: Wieliczka Ostrzeżenie: (0%) ![]() ![]() |
http://php.net/manual/en/reference.pcre.pa...n.modifiers.php
Cytat(s (PCRE_DOTALL)) If this modifier is set, a dot metacharacter in the pattern matches all characters, including newlines. Without it, newlines are excluded. This modifier is equivalent to Perl's /s modifier. A negative class such as [^a] always matches a newline character, independent of the setting of this modifier. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 15.10.2025 - 00:53 |