Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27702

Re: help me debug my "word capitalizer" script

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <john_ladasky@sbcglobal.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.03; 'that?': 0.05; 'subject:help': 0.07; 'python': 0.09; '22,': 0.09; 'subject:script': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'awk': 0.16; 'sed': 0.16; 'wrote:': 0.17; 'not,': 0.21; 'back.': 0.22; 'wednesday,': 0.22; 'cc:2**0': 0.23; 'programming': 0.23; 'linux': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:" 20': 0.26; 'probably': 0.29; 'could': 0.32; 'crazy': 0.33; 'retain': 0.33; 'that,': 0.34; 'received:google.com': 0.34; 'needed': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'next': 0.35; 'subject:" ': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'where': 0.40; 'your': 0.60; 'back': 0.62; 'day.': 0.63; 'from:addr:sbcglobal.net': 0.65; 'august': 0.66; 'ladies': 0.91; 'insane': 0.93
Newsgroups comp.lang.python
Date Thu, 23 Aug 2012 00:34:25 -0700 (PDT)
In-Reply-To <mailman.3643.1345631321.4697.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=99.100.180.25; posting-account=aVGMWgkAAAB6mGKt34gyuFhFeGnfZNcf
References <CAE7MaQbrdVbbFWDJ8GHuoybT2SNPfZyyMFU_beBc_zMKpBHPFg@mail.gmail.com> <mailman.3643.1345631321.4697.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 99.100.180.25
MIME-Version 1.0
Subject Re: help me debug my "word capitalizer" script
From John Ladasky <john_ladasky@sbcglobal.net>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.3696.1345707275.4697.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1345707275 news.xs4all.nl 6989 [2001:888:2000:d::a6]:58273
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:27702

Show key headers only | View raw


On Wednesday, August 22, 2012 3:28:18 AM UTC-7, Kamil Kuduk wrote:

> less file.txt | sed -e "s/\b\([a-z]\{4,\}\)/\u\1/g"

Say what?

Yes, you could do a crazy regex at the Linux prompt.  But... will you be able to retain that insane syntax in your head until the NEXT time you need to write something like that?  Probably not, unless you write awk all day.

That, ladies and gentlemen, is why there's Python.

I stopped programming for about 18 months a while back.  When I came back to Python and needed to do it again, I picked up right where I left off.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: help me debug my "word capitalizer" script Kamil Kuduk <kamil.kuduk@gmail.com> - 2012-08-22 12:28 +0200
  Re: help me debug my "word capitalizer" script John Ladasky <john_ladasky@sbcglobal.net> - 2012-08-23 00:34 -0700
  Re: help me debug my "word capitalizer" script John Ladasky <john_ladasky@sbcglobal.net> - 2012-08-23 00:34 -0700

csiph-web