JavaScript RegExp \xddMetacharacter
JavaScript RegExp Object
Definition and Usage
The \xdd metacharacter finds, by hexadecimal number,ddthe specified character.
If no match is found, null is returned.
Syntax
new RegExp("\xdd")
Or in a simpler way:
/\xdd/
Or in a simpler way:
/\xdd/
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the \xdd metacharacter.
Examples
Examples
Perform a global search for hexadecimal 57 (W) in a string:
var str="Visit Example. Hello World!";
var patt1=/\x57/g;
var patt1=/\x57/g;
The followingmarkedtext shows the position where the expression obtained a match:
Visit Example. Hello World!
Try it yourself »
JavaScript RegExp Object Other Extensions