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

Or if using (??) is not desired:
$bar =~ s/varchar\s*\(\d|\d\d|2[0-4]\d|25[0-5])\)/TEXT/i;
Or split up for readbility:
$byte = qr/\d|\dd|2[0-4]\d|25[0-5]/; $bar =~ s/varchar\s*\($byte)\)/TEXT/i;

Replies are listed 'Best First'.
Re^3: String replacement with regex...
by Eimi Metamorphoumai (Deacon) on Aug 06, 2004 at 16:05 UTC
    If I read it correctly, that's backwards, matching numbers less than or equal to 255 instead of numbers strictly greater than 255. (The post you're replying to was doing very clever things with truth and falsehood.)
      You're right... Oops...