From: Zach Dennis Date: 2004-01-20T07:39:28+09:00 Subject: Re: regex help Can this span multiple lines for a match? Zach -----Original Message----- From: Chris Morris [mailto:chrismo@clabs.org] Sent: Monday, January 19, 2004 5:08 PM To: ruby-talk ML Subject: Re: regex help Zach Dennis wrote: >Chris, > >You want to take all asterik's with a following forward slash that are not >inside of a double-quote? > > Yeup. >if String s = "hello*\"world*\ then you would want to capture the last *\ >? > > Yeup. >or would you like to convert the last *\ to a */ ? > > Yeup. >I guess I'm not exaxctly following what you are attempting to do. > > I'm on a job where the code in question is J++, and MS supports conditional compiles.. I'm writing a 'pre-processor' that will process out the conditional compile directives so I can run some of the code on a pure java VM. -- Chris http://clabs.org