Check if string contains a number. If yes return the Number.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siri329
    New Member
    • Aug 2018
    • 1

    Check if string contains a number. If yes return the Number.

    Code:
    "<div class="details"><p>IT: <a href="https://bytes.com/mailto:myMail@mail.com">myMail@mail.com</a><br>001 889 3888 0800<br>Emergency: +82 458 785 789<br>services:: <a href="https://bytes.com/mailto:chanidni.s@mail.com">mail.s@mail.com</a></p></div>"
    In the above string I want the phone number
    Last edited by zmbd; Aug 17 '18, 02:52 PM. Reason: [z{please format code/script with the [CODE/] format tool}]
  • zmbd
    Recognized Expert Moderator Expert
    • Mar 2012
    • 5501

    #2
    What have you tried?
    Please post your work and someone will be along to help you solve the issue (Hint: RegEx is your friend - do a search on extract, phone numbers, regex as your keyword, should turn up a few dozen tutorials on how to do this very thing ;) )

    Comment

    Working...