The first .* will include the entire line... I think the answer lies in (?!something) but I can't get it to work :S
On Tue, Jun 3, 2008 at 4:25 PM, shaun <[EMAIL PROTECTED]> wrote: > Hi G-funk, > > > Josh McDonald wrote: > > Sorry for the OT post, just a quick question which must have an answer so > > simple I'm an idiot, but I just can't figure it out. Given an arbitrary > > string, how do I match every character until I reach a specific string? > > > > If I have: > > > > The quick brown fox jumps over the lazy dog > > > > How do I match everything up to say " lazy" so that my match is > > > > The quick brown fox jumps over the > > > > I feel like a total idiot for now knowing, and it's driving me crazy. > > > > -J > > soemthign like: > > ^(.*)lazy.*$ > > ciao, > - shaun > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

