JavaScript RegExp - \xnn



Description

\xnn matches the Latin character specified by the hexadecimal number nn; for example, \x0A is the same as \n.

Example

Following example shows usage of RegExp expression.


   
      JavaScript RegExp
   
   
   
      
   

Output

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