SyntaxFix
Write A Post
Hire A Developer
Questions
In typescript, the declaration is something like this:
const regex : RegExp = /.+\*.+/;
using RegExp constructor:
const regex = new RegExp('.+\\*.+');