title: How to match value with Regex in angular
body: <p>I need to match regex and need to put condition based on result.. What I have tried is</p>
  
  <pre><code>var value1="4111111111111111"
      const str="^4[0-9]{12}(?:[0-9]{3})?$}"
  var result=value1.match(str)
  console.log(result)
  </code></pre>
  
  <p>Here I am getting value as null..</p>