JavaScript RegExp \w Modifier
Complete RegExp Object Reference
Definition and Usage
When the \w modifier is set the regular expression finds any alphanumeric
(a-z, A-Z, 0-9 and _ ) character including underscore.
Syntax
Example
In the following code we will do a global search for the all alphanumeric characters:
var str = "Give 100%";
var patt1 = /\w/g;
|
The marked text below shows where the RegExp gets a match:
Try-It-Yourself Demos
\w
How to use the "\w" modifier to find all the occurrences of alphanumeric
characters using a string object.
Complete RegExp Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|