title: How to change colour of all numbers in a string in swift
body: <p>I am trying to change colour for all numbers present in a string in <code>swift</code> code.Example:</p>
  
  <pre><code>var mystring = "abc 3423 opqrs 474598 lmno 343543"
  </code></pre>
  
  <p>(change all number colour to red)</p>
  
  <p>output:</p>
  
  <blockquote>
    <p>abc 3423 opqrs 474598 lmno 343543</p>
    
    <p>-----in red----------in red-----------in red---</p>
  </blockquote>