regex query
Posted: Tue Aug 12, 2003 3:08 pm
I'm trying to do a simple find and replace BUT I need to restrict
it to a specific column.
e.g replace all 7's with 6's in column 252.
I couldn't figure it out so I did it via a macro instead.
Still very curious how it should be done.
Perl would do it via something like : $temp =~ s/(.{251})7(.*)/$1 6 $2/;
Is it along those lines ?
Appreciate any suggestions
thanks
it to a specific column.
e.g replace all 7's with 6's in column 252.
I couldn't figure it out so I did it via a macro instead.
Still very curious how it should be done.
Perl would do it via something like : $temp =~ s/(.{251})7(.*)/$1 6 $2/;
Is it along those lines ?
Appreciate any suggestions
thanks