[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: shorthand notation for multiline in regexps?

Austin Ziegler

10/8/2003 3:49:00 PM

On Thu, 9 Oct 2003 00:09:23 +0900, Carl Youngblood wrote:
> 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.

Yes. /someregexp/im will do multiline and ignorecase.

-austin
--
austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.10.08
* 11.22.00



1 Answer

Chris Morris

10/8/2003 3:59:00 PM

0

Austin Ziegler wrote:

>>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.
>>
http://www.rubycentral.com/book/langua...

--

Chris
http://clabs....