JavaScript RegExp Metacharacter
Clash Royale CLAN TAG #URR8PPP <!-- main_leaderboard, all: [728,90][970,90][320,50][468,60] --> JavaScript RegExp Metacharacter ❮ JavaScript RegExp Object Example Search for a NUL character in a string: var str = "Visit W3Schools.Learn Javascript."; var patt1 = //; <!-- The marked text below shows where the expression gets a match: Visit W3Schools.Learn Javascript. --> Try it Yourself » Definition and Usage The metacharacter is used to find NUL character. returns the position where the NUL character was found. If no match is found, it returns -1. Browser Support Expression Yes Yes Yes Yes Yes Syntax new RegExp("\0") or simply: // ❮ JavaScript RegExp Object