Try messing with /abc.*xyz/m or .../s.


--- Fung David <ruby_david / hotmail.com> wrote:
> s1 = "abc const  const xyz"
> s2 = "abc const\nconst xyz"
> 
> re = /abc.*xyz/
> md = re.match(s1) -> match found
> md = re.match(s2) -> match not found
> 
> how can i write the regexp to match s2?
> 
> many thanks!
> -david
>
_________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/