From: Dave Thomas Date: 2001-08-23T12:38:40+09:00 Subject: [ruby-talk:20152] Re: [q] question about ruby regex "丞 旦 枢" 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