JavaScript RegExp - \uxxxx



Description

\uxxxx matches the Unicode character specified by the hexadecimal number xxxx; for example, \u0009 is the same as \t.

Example

Following example shows usage of RegExp expression.


   
      JavaScript RegExp
   
   
   
      
   

Output

Test 1 - returned value : 2
Test 2 - returned value : -1
Advertisements