Last active
February 3, 2019 20:33
-
-
Save alex-ppg/b112c8632583bdf85a3cac91fd9f2bc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [sign, num] = mystring.match(/([+-](?=\d{1,2} month))|((?<=[+-])\d{1,2}(?= month))/g) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment