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?)

Subject Re: Problem creating a regular expression to parse open-iscsi, iscsiadm output (help?)
From Kevin LaTona <lists@studiosola.com>
Date 2013-06-13 14:07 -0700
References <e682e1eb-1f7b-4776-82f0-11a0147947ec@googlegroups.com> <7BDFEEB8-15CE-42FE-B7F1-71AAE78500C7@studiosola.com>
Newsgroups comp.lang.python
Message-ID <mailman.3262.1371198031.3114.python-list@python.org> (permalink)

Show all headers | 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