I've textfield which is accepting credit card numbers separated by comma(,)
Current Regex I'm using is :
/(\d{16})(?:,|$)/g
This regex allows :
1. 1234567891234567,1234567891234561,1234567891234564
2. 1234567891234567,1234567891234561,123456 (as well)
I need to apply regex which is 16 Digits (No specific Card number criteria but just 16 digits) separated by comma. No trailing or leading comma. No number less or greater than 16 digits. No alphabets or symbol.
Needs Help!