On Thursday, June 13, 2013 5:07:33 PM UTC-4, Kevin LaTona wrote: > On Jun 13, 2013, at 7:42 AM, Kevin LaTona <li...@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
Yes. I tested with and without re.VERBOSE along with the required quoting changes. For both cases the oddities persist. Why [\s\S]+ is necessary between the two iSCSI Connection/Session lines is a mystery -- \s+? or similar should be sufficient to swallow the whitespace. --Eric -- http://mail.python.org/mailman/listinfo/python-list