easy-regexp_lib
it is a library to use regular expression in javascript easier.
Install
npm i easy-regexp_lib
Usage
; let test = ; //array['a',"b","c"] has element "a",so return true;let test2 = ; //['v',"d","e"] doesn't include element "a",so return false;
Event
1. then(array,int)
to set the conditions for regular expressions
;//The first character have to include //conditionArray1, the second and third characters have to include conditionArray2
2. test()
retrun whether the inputStr correspond the condition(true or false)
;//return true;
3. replace(string)
Turn the non-correspond part into string
;//return "1230"