2
regex = ~/\"([^"]*)\"/
그래서 필자는 지금은 그러나
regex.matcher(options).matches() => false
을하고 문자열
options = 'a:2:{s:10:"Print Type";s:8:"New Book";s:8:"Template";s:9:"See Notes";}'
다음 한 따옴표 사이의 모든 텍스트를 찾고
이 사실이 아니어야하며 4 개의 그룹이 없어야합니다.
'mymatch.each {println it [1]} '은 일치하는 내용 만 출력합니다 :-) –
@tim_yates : 고마워요! –