![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 93 Pomógł: 0 Dołączył: 15.09.2013 Ostrzeżenie: (0%) ![]() ![]() |
Chcę pobrać z linka YT:
https://www.youtube.com/watch?v=kOkQ4T5WO9E to co jest po 'v=' Napisałem:
No i wyciąga mi tylko pierwszy znak 'k' a przecież (.+?) odpowiada za wszystko co jest potem (IMG:style_emoticons/default/questionmark.gif) ? Dlaczego to nie działa ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 240 Pomógł: 278 Dołączył: 11.03.2008 Ostrzeżenie: (0%) ![]() ![]() |
http://stackoverflow.com/questions/9623879...x-question-mark - tu znajdziesz odpowiedź na swoje pytanie. Gdybyś nie mógł to zacytuję: Cytat Yes. + and * are called "greedy" operators: they consume as much as they can get away with. In contrast, +? and *? are the "non-greedy" versions: they consume as little as they can get away with. Search on the web for "regex greedy nongreedy" for more information/tutorials.
Ten post edytował markuz 30.07.2016, 19:46:22 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 9.10.2025 - 01:02 |