in reply to Re: String replacement with regex...
in thread String replacement with regex...

Okay, so I thought it was working, and it is... But too expansively.

Using
$buffer =~ s/varchar\s*\((\d+)(??{$1<256})\)/TEXT/i;
as my replacement function, I'm getting conversions on this column, for some reason...

Discrepancy_Filename VARCHAR (40) NULL
becomes
Discrepancy_Filename TEXT NULL

Ideas?
Thanks,
amonotod

Replies are listed 'Best First'.
Re^3: String replacement with regex...
by bgreenlee (Friar) on Aug 06, 2004 at 19:58 UTC

    Odd...it works fine for me. Would it be possible for you to post a snippet of code that shows it not working?

    Brad