Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Last 5 digit of ISBN

$
0
0

Hi,

 

I need to catch the last 5 digit numbers from the 13 digit ISBN, if it possible to capture with the script?

 

Example: 9840000123412



var myNumber = 9840000123412;

alert(myNumber)

var mySplit = myNumber.replace(/\d{5}/, "") //here i get a problem

alert(mySplit)

 

 

Output need this: 23412



Thanks,

V.


Viewing all articles
Browse latest Browse all 15932


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>