-2

I am stack to finding a filter or any way to find a phone number from string. Actually I get a response in string and there is a phone number too and client want to make link because of smart-phone when user tab on it. it's goes to call directory.

here is client request to do with response. "Low priority but could we make it so that the phone number is a hyper link so the user can press and it goes to make call.

I.e. 0035312998080 Or +35312998080"

here is a test response.

Unable to process this booking online it is too close to the party date. To book please phone Fun Fitness - Play Centre on 353 - 1 - 2998080
Legionar
  • 7,472
  • 2
  • 41
  • 70
Haider Ali
  • 227
  • 3
  • 17
  • 1
    seems like a case for regex. Even though you may be using angular in your project, I'm not sure that the angular tags are appropriate here, because it is probably something that is more generic JavaScript. – Claies Dec 19 '15 at 13:37

1 Answers1

0

Why do you need to find it? It's right there...

To make it callable:

<a href="tel:+15555551212">555-555-1212</a>

Stolen from How to create hyperlink to call phone number on mobile devices?

Community
  • 1
  • 1
Jonathan
  • 8,771
  • 4
  • 41
  • 78