From: Sebastian Hungerecker Date: 2008-09-13T16:52:16+09:00 Subject: Re: regular expressions on strings with multiple newlines Adam Akhtar wrote: > /x*?(.*?)x*/ > > but if there are some unknown number of newlines seperating those > letters like so > > "xxx cfg\nhyrfh\nyuij\nhcdf xxxx" > > that reg fails >> "xxx cfg\nhyrfh\nyuij\nhcdf xxxx" =~ /x*?(.*?)x*/m => 0 Notice the m. HTH, Sebastian -- NP: Dismember - Europa Burns Jabber: sepp2k@jabber.org ICQ: 205544826