"¾ç ö ¿õ" <cwyang / aratech.co.kr> writes: > Hi. > > I've been trying to match C-style comment in ruby regex. > > my wrong approach is as follows. > > case str > when /\/\*[^(\*\/)]*\*\// you could try: when %r{/\*.*?\*/}m The .*? is a non-greedy match of any character, and the 'm' option allows the match to proceed across line endings. Dave