0

I need to have a Regex for matching a single (or greater) non- blank space character (would allow all special characters such as !,' etc...). Would

  var filter = /\S+/;

be sufficient? This seems to work for 1 or greater.

Would:

  var filter = /\S+/{3,};

be sufficient for 3 or more of the non-same characters (like "def", "a!c", "dA!!f", but not "some bird"?

timpone
  • 19,235
  • 36
  • 121
  • 211

0 Answers0