in reply to regexp help

Thanks guys.. I also found the solution myself... $str = ((113000.00 Nos.) + (250000.00 Nos.) ++ (1) ) $str =~ s/[a-zA-Z()]\.*//g; $str =~ s/\++/\+/g;

this solves the problem for me and gives the required result