Created
November 4, 2020 14:11
-
-
Save ahmetozer/06c34ab8626d90de1a4f0fd28f634560 to your computer and use it in GitHub Desktop.
kvparse
This file contains hidden or 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
String.prototype.inikv = function (regxy) { | |
const myRegexp = RegExp("^(?:"+regxy+")=(.*)$","gm"); | |
let match = myRegexp.exec(this); | |
if (match != null) { | |
return match[1] | |
} | |
return null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment