I am trying to validate a text box, to have any character, but not empty.
This is my current code
condition = '\\d{9}';
condition = new RegExp(condition);
if (condition.test(element.val())) {
//some code
}
But, i want it to allow all characters, but not empty, I have already tried .{50}, /./s and [\s\S] , But none seem to be working.