Find Rang of substring in NSMutableAttributedString : <p>I have AttributedString with emoji like this "🤣🤣🤣 @Mervin tester 🤣🤣🤣"</p>

<p>Now I need to find a range of Mervin in this attributed String. </p>

<pre><code>let attributedString = NSMutableAttributedString(string: "🤣🤣🤣 @Mervin tester 🤣🤣🤣")

let range = // range for "Mervin" in above String. 
</code></pre>

<p>Thank you.  </p>
