Re: regexp not working past one character

2008-02-04 Thread Chas. Owens
On Feb 4, 2008 1:02 AM, <[EMAIL PROTECTED]> wrote: snip > Here's what I got from file file.txt > > file.txt: Big-endian UTF-16 Unicode English character data, with very > long lines, with CRLF, CR, LF line terminators > > Does this explain why my regexp search wasn't working? snip It might. How

Re: regexp not working past one character

2008-02-04 Thread PlagueMagazine
On Feb 3, 8:36 pm, [EMAIL PROTECTED] (Chas. Owens) wrote: > On Feb 3, 2008 12:07 PM, <[EMAIL PROTECTED]> wrote: > > > On Feb 2, 11:10 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > > > [EMAIL PROTECTED] wrote: > > > > I have a program with a line like > > > > > while () { > > > > if (/stuff/i

Re: regexp not working past one character

2008-02-03 Thread Chas. Owens
On Feb 3, 2008 12:07 PM, <[EMAIL PROTECTED]> wrote: > On Feb 2, 11:10 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > > [EMAIL PROTECTED] wrote: > > > I have a program with a line like > > > > > while () { > > > if (/stuff/i) { > > > print; > > > } > > > } > > > > > When I run t

Re: regexp not working past one character

2008-02-03 Thread PlagueMagazine
On Feb 2, 11:10 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > [EMAIL PROTECTED] wrote: > > I have a program with a line like > > > while () { > > if (/stuff/i) { > > print; > > } > > } > > > When I run the program, and I replace "stuff" with only one character, > > like "d", it

Re: regexp not working past one character

2008-02-02 Thread John W. Krahn
[EMAIL PROTECTED] wrote: I have a program with a line like while () { if (/stuff/i) { print; } } When I run the program, and I replace "stuff" with only one character, like "d", it works exactly as I expect. But if instead of using "d", I use "da" or "date" (which I know are

Re: regexp not working past one character

2008-02-02 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I have a program with a line like while () { if (/stuff/i) { print; } } When I run the program, and I replace "stuff" with only one character, like "d", it works exactly as I expect. But if instead of using "d", I use "da" or "date" (which I know are

Re: regexp not working past one character

2008-02-02 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > I have a program with a line like while () { if (/stuff/i) { print; } } When I run the program, and I replace "stuff" with only one character, like "d", it works exactly as I expect. But if instead of using "d", I use "da" or "date" (which I know a