https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15239
--- Comment #7 from Ruben Norori <kachoma...@gmail.com> --- This is the final solution, this regular expression extracts only the alphabetical part of the string, and use it in the new item. my $barcodevalue = $oldbarcode; my $exist_itemnumber; my $newv = $barcodevalue; $newv =~ s/[^a-zA-Z,]//g; for (my $i = 0; $i < $number_of_copies;) { # If there is a barcode if ($barcodevalue) { # Getting a new barcode (if it is not the first iteration or the barcode we tried already exists) $barcodevalue = $newv.$barcodeobj->next_value($oldbarcode) if ($i > 0 || $exist_itemnumber); -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/