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 |
|
|
|
Post
#3
|
|
|
Grupa: Zarejestrowani Postów: 93 Pomógł: 0 Dołączył: 15.09.2013 Ostrzeżenie: (0%)
|
Aha zachłanność (IMG:style_emoticons/default/smile.gif) Dzięki !
|
|
|
|
Post
#4
|
|
|
Grupa: Zarejestrowani Postów: 6 809 Pomógł: 1828 Dołączył: 11.03.2014 Ostrzeżenie: (0%)
|
|
|
|
|
Post
#5
|
|
|
Grupa: Zarejestrowani Postów: 93 Pomógł: 0 Dołączył: 15.09.2013 Ostrzeżenie: (0%)
|
Ciekawa alternatywa (IMG:style_emoticons/default/smile.gif)
|
|
|
|
Post
#6
|
|
|
Grupa: Zarejestrowani Postów: 455 Pomógł: 49 Dołączył: 12.04.2010 Ostrzeżenie: (0%)
|
Na pewno szybsza.
|
|
|
|
![]() ![]() |
|
Aktualny czas: 21.12.2025 - 23:41 |