가능한 중복 (*.?) :
what does lazy and greedy means in regexp?차이 (*.) 및
내가 그 정규식에있는 물음표 후 *, + 알거나? ungreedy를 의미하지만 어떤 문자와도 일치 시키려면 (. *) 또는 (. *?)을 사용하는 것의 차이점은 무엇입니까?
감사합니다.
편집 : 내 경우 URL을 확인하고 싶습니다.
http://site\.net/(.*?)\.html
및
http://site\.net/(.*)\.html
의 차이점은 무엇입니까?
http://stackoverflow.com/questions/2301285/what-does-lazy-and-greedy-means-in-regexp –
* 참고 자료 [Open source RegexBuddy alternative] (http://stackoverflow.com/questions/89718) 주어진 패턴을 분석하고 설명 할 수있는 유용한 툴을 제공하는 [RegExp.info] (http :// -)와 [Online regex testing] (http://stackoverflow.com/questions/32282/regex-testing) /regular-expressions.info/) 더 좋은 튜토리얼. – mario
@Matteo : 예제에 대한 설명 추가 – jgauffin