Finding Plus Sign in Regular Expression

Plus is a special character in regular expressions, so to express the character as data you must escape it by prefixing it with \.

var reg = /d\+1/;

Leave a Comment