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: 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 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: <7BDFEEB8-15CE-42FE-B7F1-71AAE78500C7@studiosola.com> To: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Jun 13, 2013, at 7:42 AM, Kevin LaTona 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