1.0.5 • Published 7 years ago
textminator v1.0.5
Textminator
Simple regex wrapper
let t2 = require('textminator');
let yourRegExp = "lazy bastard"
let victimString = "lazy bastard, this girl is so nasty!!!."
let yourOptions = "gi"
t2
.remove(yourRegExp)
.from(victimString)
.options(yourOptions) // optional (;一_一)
.apply()
.then((result)=>{
console.log(result)
})
...
t2.remove("6(?=\\w)").from.("123456asdfg").apply().then((x)=>{
console.log(x) //12345asdfg
})
command line
node node_modules/textminator/index.js --remove="hello\\s" --from="hello world" --options="g"
world