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

