how to get the text of a string that is in between two characters using js code example
Example: javascript get string between two characters
const oldString = 'John1Doe2'
const stringBetweenCharacters = oldString.match(/1(.*?)2/i)[1] //Doe
const oldString = 'John1Doe2'
const stringBetweenCharacters = oldString.match(/1(.*?)2/i)[1] //Doe