Skip to content

Instantly share code, notes, and snippets.

@ahmetozer
Created November 4, 2020 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmetozer/06c34ab8626d90de1a4f0fd28f634560 to your computer and use it in GitHub Desktop.
Save ahmetozer/06c34ab8626d90de1a4f0fd28f634560 to your computer and use it in GitHub Desktop.
kvparse
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