Re: More regular expression woes

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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: mmap/munmap with zero length
    ... option seems more like a workaround/hack. ... imo it's confusing to have ... mmap und munmap deal differently with len=0. ...
    (freebsd-hackers)
  • Re: Android in serious trouble...
    ... offline), but only a fool would trust it entirely as a primary, IMO. ... I'd opt out of an optical drive if it meant weight and size was substantially reduced. ...
    (rec.sport.football.college)
  • Re: mmap/munmap with zero length
    ... imo it's confusing to have ... mmap und munmap deal differently with len=0. ... succesfully alocate memory which cannot be removed doesn't seem ...
    (freebsd-hackers)