isContainSingleCharacter static method
check contain regix
Implementation
static bool isContainSingleCharacter({ required String mainString, required String charSingle} ) {
if(charSingle.length > 1 ) {
return false;
}
var r = RegExp(r"[" + charSingle + "]").hasMatch(mainString);
// print("abdo - test " + r.toString() );
return r;
}