Jump to content

Need pattern changed with no space


darkfreaks

Recommended Posts

If you need it to have at least one of those characters change the * to a +

 

If it has to have any one or more non space character wouldn't the following work:

 

/^\S+$/

 

If it has to have any zero or more non space character wouldn't the following work:

 

/^\S*$/

 

 

It is easier to figure out a pattern when you know what you are looking for as well as what you are trying not to find.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.