Created
July 3, 2020 01:53
-
-
Save takahashi-h5/5a506a037eccc14e6c76dd06eb74c4f9 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 str = "/var/db/hoge/test1/Android.json"; | |
let regexp = /\/var\/db\/hoge\/(.*?)\/(iPhone|Android)\.json/g; | |
console.log(regexp.test(str)) // true | |
console.log(regexp.exec(str)) // nullになってしまう |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment