How to match up to a word

jjasonclark_at_spamless.gmail.com
Date: 03/23/05


Date: 23 Mar 2005 00:51:30 -0800

I'm writing a program that processes a log file. I need to search for
everything up to a single word. I'm currently doing it with a positive
look ahead but I'm not sure if this is the most efficient way to do it.
 Anyone have any ideas on how to improve this?

Ex. string - blah blah foo bar blah end
currently use - ^([\w ]+)(?=end)end

Thanks,
Jason



Relevant Pages

  • When to use assertions
    ... Part of writing *really* robust ... AppGlobalLog.LogFatalError("Blah blah messed up"); ... KeBugCheckEx(code, param, param, param); ...
    (comp.lang.pascal.delphi.misc)
  • Re: Towse gets a redo (was Sylvia Lutz on the federal dole)
    ... "Blah blah." ... Got cites of all these peeps being attacked for writing here about writing? ... wagons because you're FEMALE. ... Your brain was screwed up so bad from Scientology that you would have no way of knowing if you're fooled or not.Those guys really, really did a number on you. ...
    (misc.writing)
  • Re: Nanowrimo word counts
    ... seems to have affected the writing critical faculties as well as the ... I think Helen has been a saleable writer for a while and once you have ... If things are blah it may be because the words on the page don't work ... I think writing is a huge leap of faith - that somehow the words will ...
    (rec.arts.sf.composition)
  • Re: Windows Service and StreamWriter
    ... with is writing text to a log file. ... StreamWriter function to try to test this. ... Private Sub Timer1.elapsed (ByVal...blah blah blah) Handles blah ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Dippi needs beats
    ... i been writing a little bit again lately. ... > it out blah blah blah... ... New York, New York big city of dreams. ... http://www.abitnice.com/canibringmygat/ - hiphop producer audio blog ...
    (rec.music.hip-hop)