Re: More regular expression woes



Hello John,

@"\b\d{7}\b|\b\d{8}\b",

An interesting additional idea, although obviously not really flexible - I would opt for the flexibility of \d{7,8} as long as I can make it work. Furthermore, your example could be less confusing, IMO, as

\b(\d{7}|\d{8})\b

Or of course, as

\b\d{7,8}\b

which brings us back to what has already been mentioned. Maybe I'm missing the point of your post?


Oliver Sturm
--
http://www.sturmnet.org/blog
.



Relevant Pages

  • Re: itertools.groupby
    ... I agree that it is confusing, ... IMO the confusion could be lessened if the function with the current ... implied behavior of creating just one iterator for each unique type of ... as categorized by the key function. ...
    (comp.lang.python)
  • Re: Finding useful functions- part 1
    ... sometimes seems to apply to an input to a single neuron, ... it's compared to the desired outcome is confusing, at least to me, for ... since IMO an output is a signal to the experimenter, ... My comments as a pure outsider may or may not help clarify ...
    (sci.cognitive)
  • Re: Radio buttons and tabs
    ... > fwiw, imo 2 option buttons that are both set = False are confusing to the ... especially since, once the user sets one, there'll be no way for them ...
    (microsoft.public.vb.controls)
  • Re: I really hate .NET especially inside Delphi
    ... flexibility point that people are talking about is covered, ... the other way that is not covered (multiple namespaces in one file) ... which IMO is not really that good an idea, in 2 years of C# coding ... RemObjects Software ...
    (borland.public.delphi.non-technical)
  • Re: Looking for speed increases in "make index" and pkg_version for ports
    ... port changes its PKGNAME as soon as esound is installed. ... Maybe the time has come to give up on some of the flexibility the ... ports tree has (and this particular one is confusing to the users) ... running 'pkgdb -F' almose every time before portupgrade to fix old ...
    (freebsd-hackers)