$variable =~ s/([^<]*?)\s+\d{2}(\d{2}[^<]*?)$/$1-$2/igs; $variable =~ s/\s+/-/igs; [download]
In reply to Re: reg expression question by Sathishkumar in thread reg expression question by healingtao