Escaped Characters

Introduction

Form

var pattern = new RegExp("...abc...");

Use

Example

The following is the code.

var pattern = new RegExp("^abc+$"); var string = "TreeLeaves"; document.writeln(pattern.test(string));

On running the above code, the following output is obtained.