Quote:
Originally Posted by capink
Code:
program:
isbn = select(field('identifiers'),'isbn');
isbn = re(isbn, '[^\d]', '');
isbn = re(isbn, '(\d)', '\1,');
count(isbn,',')
|
Without going too deeply into the previous posts to see if the answer is already there, it seems that this template is equivalent to the above, but faster.
Code:
program:
isbn = select(field('identifiers'),'isbn');
isbn = re(isbn, '[^\d]', '');
# isbn = re(isbn, '(\d)', '\1,');
# count(isbn,',')
strlen(isbn)