Simple, self-explanatory code snippets.
let regExp = /\(([^)]+)\)/;
let matches = regExp.exec('Show (this) and not (that).');
console.log(matches[1]);
No comments:
Post a Comment