Skip to content

Instantly share code, notes, and snippets.

@GiladShoham
Created March 14, 2018 19:08
Show Gist options
  • Select an option

  • Save GiladShoham/bae2b15d62edf54fc254494b3537b872 to your computer and use it in GitHub Desktop.

Select an option

Save GiladShoham/bae2b15d62edf54fc254494b3537b872 to your computer and use it in GitHub Desktop.
stuck regex
const jsdocRegex = /\/\*\*\s*\n([^*]*(\*[^/])?)*\*\//g;
const str4 = '/**\n * Basic accordion component\n * @render react\n * @example\n **/';
str4.match(jsdocRegex);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment