jianliao's notebooks

  • Token Graphql - /jianliao/token-graphql
    Last edited 2 years ago
    This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
  • Regex - /jianliao/regex
    Last edited 2 years ago
    const text = "The [blue-100](token://blue-100) CCW header only uses two of the Spectrum [font100](token://font100) color themes for the MAX 2021 version 1 release: [light](/page/color/#Device-light-mode) and [dark](/page/color/#Device-dark-mode)." const regexpNames = /\[([^\[\]]*?)\]\(token:\/\/(\S*?)\)/gsi; const match = [...text.matchAll(regexpNames)]; console.log(match[0][1]); console.log(match[1][1]);