Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Neil Cerutti Newsgroups: comp.lang.python Subject: Re: how to avoid leading white spaces Date: 2 Jun 2011 13:21:06 GMT Organization: Norwich University Lines: 17 Message-ID: <94ph22FrhvU5@mid.individual.net> References: <9e861b0e-e768-401b-b5ca-190f20830a08@s9g2000yqm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net d53G9cbm3ZbqWLAgouWRZg5B9OVjHUVP53f68m3sNzjrSpL7RT Cancel-Lock: sha1:AvLhlq4+Qps4XVxeHTJhRiQAPZ0= User-Agent: slrn/0.9.9p1/mm/ao (Win32) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6863 On 2011-06-01, rurpy@yahoo.com wrote: > For some odd reason (perhaps because they are used a lot in > Perl), this groups seems to have a great aversion to regular > expressions. Too bad because this is a typical problem where > their use is the best solution. Python's str methods, when they're sufficent, are usually more efficient. Perl integrated regular expressions, while Python relegated them to a library. There are thus a large class of problems that are best solve with regular expressions in Perl, but str methods in Python. -- Neil Cerutti