in reply to regexp help

so what have you tried ?

#!/usr/bin/perl -- use strict; use warnings; my $input = '((113000.00 Nos.) + (250000.00 Nos.) ++ (1) )'; my $output = ' 113000.00 + 250000.00 + 1 '; print "$input\n"; $input =~ s/ No\S+ //gx; #~ $input =~ tr/ +//s; # squash repeating space and + characters #~ $input =~ tr/)(//d; # delete ) and ( $input =~ tr/+ )(/+ /s; # squash repeating space and +, delete ) and ( print "$output\n"; print "$input\n"; __END__ ((113000.00 Nos.) + (250000.00 Nos.) ++ (1) ) 113000.00 + 250000.00 + 1 113000.00 + 250000.00 + 1