regular expression not to allow space in javascript

Solutions on MaxInterview for regular expression not to allow space in javascript by the best coders in the world

showing results for - "regular expression not to allow space in javascript"
Alexander
02 Jan 2020
1var regexp = /^\S*$/; // a string consisting only of non-whitespaces
2