On Oct 2, 3:16 am, Daryl Lee <[EMAIL PROTECTED]> wrote:
> I am trying to locate all lines in a suite of files with quoted strings of
> particular lengths. A search pattern like r'".{15}"' finds 15-character
> strings very nicely. But I have some very long ones, and a pattern like
> r'".{272}"' fa
On Oct 1, 6:16 pm, Daryl Lee <[EMAIL PROTECTED]> wrote:
> I am trying to locate all lines in a suite of files with quoted strings of
> particular lengths. A search pattern like r'".{15}"' finds 15-character
> strings very nicely. But I have some very long ones, and a pattern like
> r'".{272}"' fa
Since you are getting the regular expression pattern via an argument I
would first check that searchPattern is what you expect. Shells can do
funny things with arguments containing special characters. Also, is
it possible that the quoted strings in the files contain escapes? For
example if a file
On Mon, Oct 01, 2007 at 08:33:28PM +0200, Florian Schmidt wrote:
> could you post your searchPattern?
sorry. now i see you already posted your search pattern!:)
r".{272}"
--
Florian Schmidt // www.fastflo.de
--
http://mail.python.org/mailman/listinfo/python-list
Daryl Lee <[EMAIL PROTECTED]> writes:
> I am trying to locate all lines in a suite of files with quoted
> strings of particular lengths. A search pattern like r'".{15}"'
> finds 15-character strings very nicely. But I have some very long
> ones, and a pattern like r'".{272}"' fails miserably, ev
On Mon, Oct 01, 2007 at 11:16:49AM -0600, Daryl Lee wrote:
> ... But I have some very long ones, and a pattern like
> r'".{272}"' fails miserably, even though I know I have at least one
> 272-character string.
~>python
Python 2.4.4 (#2, Apr 26 2007, 00:02:45)
[GCC 4.1.2 20061115 (prerelease) (D