Tuesday, June 16, 2015

Regex to match any character including new lines

/s modifier 를 사용하면 됨
$string =~ /(START)(.+?)(END)/s;
키워드 : 개행문자
검색어 : perl regular expression including newline
레퍼런스 : Regex to match any character including new lines

No comments:

Post a Comment