Skip to content

Instantly share code, notes, and snippets.

@amimaro
Last active January 1, 2022 10:39
Show Gist options
  • Save amimaro/6787026c560e38a8f723c64a76f1a3c3 to your computer and use it in GitHub Desktop.
Save amimaro/6787026c560e38a8f723c64a76f1a3c3 to your computer and use it in GitHub Desktop.
Regex Expressions
Some Regex Expressions
\/\*(.*)\*\/
Remove /* */ (multiline comments)
@amimaro
Copy link
Author

amimaro commented Jan 1, 2022

Roman numbers
const romanNumeralRegex = /^m{0,3}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})$/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment