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


Groups > comp.lang.python > #48078

Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?)

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <lists@studiosola.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.101
X-Spam-Level *
X-Spam-Evidence '*H*': 0.80; '*S*': 0.00; 'subject:help': 0.08; 'python': 0.11; 'from:addr:lists': 0.16; 'subject:?)': 0.16; 'subject:Problem': 0.16; 'subject:expression': 0.16; 'subject:regular': 0.16; 'url:html#re': 0.16; 'url:re': 0.16; 'wrote:': 0.18; 'to:name:python-list@python.org': 0.22; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'kevin': 0.30; 'mode': 0.30; 'code': 0.31; '13,': 0.31; 'url:python': 0.33; 'subject: (': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'url:library': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'quote': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'enclosed': 0.60; 'course': 0.61; 'header:Message-Id:1': 0.63; 'received:phx3.secureserver.net': 0.65; 'received:prod.phx3.secureserver.net': 0.65; 'received:68.178.252': 0.84; '2013,': 0.91; 'am.': 0.91; 'received:68.178': 0.91
Content-Type text/plain; charset=us-ascii
Mime-Version 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?)
From Kevin LaTona <lists@studiosola.com>
In-Reply-To <7BDFEEB8-15CE-42FE-B7F1-71AAE78500C7@studiosola.com>
Date Thu, 13 Jun 2013 14:07:33 -0700
Content-Transfer-Encoding quoted-printable
References <e682e1eb-1f7b-4776-82f0-11a0147947ec@googlegroups.com> <7BDFEEB8-15CE-42FE-B7F1-71AAE78500C7@studiosola.com>
To "python-list@python.org" <python-list@python.org>
X-Mailer Apple Mail (2.1499)
X-Mailman-Approved-At Fri, 14 Jun 2013 10:20:30 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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>
Newsgroups comp.lang.python
Message-ID <mailman.3262.1371198031.3114.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371198031 news.xs4all.nl 15891 [2001:888:2000:d::a6]:52100
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48078

Show key headers only | View raw


On Jun 13, 2013, at 7:42 AM, Kevin LaTona <lists@studiosola.com> wrote:
> With the following code tweaks in Python 2.7.2, I find it works with VERBOSE for me, but not without.


Sorry had a small bleep while writing that last line this AM.

Of course the regex pattern would work in VERBOSE mode as that was how it was presented.

Without VERBOSE each line of the pattern would of needed to have been enclosed in quote or double quote marks.


http://docs.python.org/2/library/re.html#re.VERBOSE


-Kevin



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


Thread

Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?) rice.cruft@gmail.com - 2013-06-12 17:59 -0700
  Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?) Andreas Perstinger <andipersti@gmail.com> - 2013-06-13 09:17 +0200
    Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?) rice.stew@gmail.com - 2013-06-14 12:09 -0700
  Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?) Kevin LaTona <lists@studiosola.com> - 2013-06-13 07:42 -0700
  Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?) Kevin LaTona <lists@studiosola.com> - 2013-06-13 14:07 -0700
    Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?) rice.stew@gmail.com - 2013-06-14 12:14 -0700

csiph-web