Answers for "how to get a data between two characters in javascript"

3

javascript get string between two characters

const oldString = 'John1Doe2'

const stringBetweenCharacters = oldString.match(/1(.*?)2/i)[1] //Doe
Posted by: Guest on April-07-2021

Code answers related to "how to get a data between two characters in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language