0
Rubules를 사용할 때 1) 레일 콘솔이나 irb 환경을 사용할 때 2) 기타와 일치하는 출력이 다릅니다. 이 두 개의 서로 다른 출력 내가 무엇을 놓치고있는 이유Regex의 변칙 출력
(/\w+/).match("---\n- nicidnut\n") produces "nicidnut".
IRB
1) Rubular 나
/\w+/ on test string "---\n- nicidnut\n" matches " n nicidnut n"
(I have shown only matched part and put spaces for unmatched string characters)
2) 나는 이해할 수 없다?
고마워요. 그것은 도움이 :) – shailesh