Skip to content

Instantly share code, notes, and snippets.

@ashwinkumar2438
Last active August 31, 2020 04:02
Show Gist options
  • Save ashwinkumar2438/c23f5f851407f962c36e3629c3c5f7ac to your computer and use it in GitHub Desktop.
Save ashwinkumar2438/c23f5f851407f962c36e3629c3c5f7ac to your computer and use it in GitHub Desktop.
var str="\n9 " /* "
9 " */
var regex=new RegExp("\n\\d\\s"); // /\n\d\s/
regex.test(str); //true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment