How to use a regular expression on a variable to find a target?
For example, I want to find numbers in the `source` variable.
The output is null?
What's wrong?
var source="@m2Title";
//Default regular expression
var re="(?<=@m)(\\d+)(?!\\d)"
//Standard Regular Expressions
var toReg=new RegExp(re);
var result=source.match(toReg);
alert(result);