Re: [Pyparsing] Check for tabs
Brought to you by:
ptmcg
From: Mark L. <bre...@ya...> - 2013-10-29 16:24:07
|
On 29/10/2013 15:46, Mario R. Osorio wrote: > Mark, > > Only two mistakes were made here: > > 1. In lue of more detailed background, you *assumed* Roggisch is trying > to use pyparsing just to look for "\t"'s, and > 2. The rest of us stupids here (me included of course) > *assumed*Roggisch just asked a very specific question pertaining a > more complex > issue from which he might have wanted to keep us away either because he > doesn't need help on anything else or because this is the first such issue > he finds where he needs help. > > See the two mistakes? neither do I ... The one and only mistake here is > that everyone assumed what each wanted to assume > > Now, in my particular case, I can give you a reason for that (which I do > not pretend to use as an excuse): "I prefer to think everyone has a certain > level of knowledge, though not necessarily of experience, otherwise you > wouldn't be here but probably asking your teacher at school". That is of > course, another assumption but, hey! I'm just one more stupid human being > trusting other human beings!!. > > > The only *sheer unadulterated rubbish* here have been your comments. Please > be more of a boy!* > * > What are you on about? The OP was Hanchel Cheng, not Diez B. Roggisch. The OP said "My question is pretty basic: I have a string 'name\tdate\t\tlocation'. What would I do to ensure that between the 'name' and 'date' there is exactly one tab and between 'date' and 'location' there is exactly two tabs?" What is there to assume about that? Diez replied "I would forego pyparsing and use single string-functions" and later "yes, you can do it with pyparsing, but IMHO it's overkill". D* then wrote his piece to which I replied, obviously very much agreeing with Diez. Have I missed something obvious? -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence |