How to use JavaScript Regex both literal notation and regexp object constructor method with examples Laurence Svekis 12 months ago How to use JavaScript Regex both literal notation and regexp object constructor method with examples The regular expression patterns can be used within a number of JavaScript methods, to check for matches and do something …