From: Robert Klemme Date: 2003-10-09T18:12:17+09:00 Subject: Re: shorthand notation for multiline in regexps? "Carl Youngblood" schrieb im Newsbeitrag news:cLVgb.521546$Oz4.379040@rwcrnsc54... > Is there a way to declare a multiline or ignorecase regexp without using > Regexp.new()? I'd like to be able to do something like: > > /someregexp/im > > or something like that, similar to the way perl allows you to put stuff > after the regexp. I can't find anything about this in Programming Ruby. MY_LONG_COMMENTED_REGEXP = / (\w+) # given name \s+ (\w+) # surname \s+ (\d+) # age /mix Reegards robert