Wednesday, January 23, 2013

Perl 의 regular expression 에서 문자가 몇번 repeat 되었는가 검사하는 법

인용 : When it is necessary to specify the minimum and maximum number of repeats explicitly, the bounds operator {} may be used. Thus. a{2} is the letter ‘a’ repeated exactly twice, a{2,4} represents the letter ‘a’ repeated between 2 and 4 times, and a{2,} represents the letter ‘a’ repeated at least twice with no upper limit.
검색어 : perl regular expression number repeat
출처 : Regular Expression Reference

No comments:

Post a Comment