JavaScript RegExp \s Modifier
Complete RegExp Object Reference
Definition and Usage
When the \s modifier is set the regular expression finds single space
characters.
A single space character can be:
- A whitespace character
- A tab character
- A carriage return character
- A new line character
- A vertical tab character
- A form feed character
Syntax
Example
In the following code we will do a global search for the single space characters:
var str = "Is this all there is?";
var patt1 = /\s/g;
|
The white spaces in the text below will get a
match:
Try-It-Yourself Demos
/s
How to use the "/s" modifier to find all the occurrences of single space
characters using a string object.
Complete RegExp Object Reference
Learn how your website performs under various load conditions
|
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|