Simple, self-explanatory code snippets.
let re = /{([^}]+)}/;
let matches = re.exec(str);
console.log(matches[1]);
No comments:
Post a Comment