[Регулярные выражения Perl] жадность

kruzer25

Где можно почитать про субж?

skvoria

Есть кстати дивная прога RegexBuddy - там и полный хелп есть (на англ ну и конструировать-тестировать она умеет неплохо...

shlyumper

Ответы на любые вопросы по perl regular expressions есть в документации перла, как это не странно.

By default, a quantified subpattern is "greedy", that is, it will match
as many times as possible (given a particular starting location) while
still allowing the rest of the pattern to match. If you want it to match
the minimum number of times possible, follow the quantifier with a "?".
Note that the meanings don't change, just the "greediness":
Оставить комментарий
Имя или ник:
Комментарий: