Regular Expression stack space error (bug??)

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

Regular Expression stack space error (bug??)

Post by melvers »

I think this is a bug. I sent it to TextPad but didn't hear anything back, so I thought I would get opinions from Forum members.

I have the following two lines of text in a file:

"Field-1","Field-2","Field-3","Field-4","Field-5","Field-6","Field-7","Field-8","Field-9","Field-10","Field-11","Field-12","Field-13","Field-14","Field-15","Field-16","Field-17","Field-18","Field-19","Field-20","Field-21","Field-22","Field-23","Field-24","Field-25","Field-26","Field-27","Field-28","Field-29","Field-30","Field-31","Field-32","Field-33","Field-34","Field-35","Field-36","Field-37","Field-38","Field-39","Field-40","Field-41","Field-42","Field-43","Field-44","Field-45","Field-46","Field-47","Field-48","Field-49","Field-50","Field-51","Field-52","Field-53","Field-54","Field-55","Field-56","Field-57","Field-58","Field-59","Field-60","Field-61","Field-62","Field-63","Field-64","Field-65","Field-66","Field-67","Field-68","Field-69","Field-70","Field-71","Field-72","Field-73","Field-74","Field-75","Field-76","Field-77","Field-78","Field-79","Field-80","Field-81","Field-82","Field-83","Field-84","Field-85","Field-86","Field-87","Field-88","Field-89","Field-90","Field-91","Field-92","Field-93","Field-94","Field-95","Field-96","Field-97","Field-98","Field-99","Field-100","Field-101","Field-102","Field-103","Field-104"
INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(50),VARCHAR(128),INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(64),VARCHAR(64),INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(50),VARCHAR(50),VARCHAR(128),INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(64),VARCHAR(64),INTEGER,INTEGER,VARCHAR(50),UNIQUEIDENTIFIER,VARCHAR(50),VARCHAR(50),VARCHAR(50),VARCHAR(50),INTEGER,VARCHAR(129),VARCHAR(129),INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(50),INTEGER,VARCHAR(2048),VARCHAR(50),INTEGER,VARCHAR(32),INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(32),VARCHAR(50),VARCHAR(50),VARCHAR(64),VARCHAR(64),INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,INTEGER,VARCHAR(32),INTEGER,VARCHAR(32),INTEGER,INTEGER,INTEGER,VARCHAR(50),VARCHAR(50),INTEGER

I used the following search string (with Regular expression checked):

([^,]*,){62}"Field-64"

If the cursor is located in the first line anywhere after the comma separating "Field-2" from "Field-3" I get the following error:

Ran out of stack space trying to match the regular expression.

I have more information as well:

If I change the 62 is the search string to 21, the search always works without an error not matter where the cursor is located.
If I change the 62 to 22, I get the same error when the cursor is located anywhere in the first line after the comma separating "Field-42" from "Field-43.
The same thing happens for any number larger than 21. It just moves the location by the corresponding number of fields.

Any ideas why I am running out of stack space with such a small amount of data?
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Yes, there seems to be a bug here. I've tried a few things, but I can't see exactly what triggers it.
melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

Post by melvers »

Are you associated with TextPad? If not, do you know how to report this? Like I said, I already sent this to them via e-mail and didn't hear back if it is a bug or not.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I have nothing to do with TextPad.

I can only suggest emailing support@textpad.com .
Post Reply