By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,707 Members | 988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,707 IT Pros & Developers. It's quick & easy.

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

P: 1
Expand|Select|Wrap|Line Numbers
  1. "<div class="details"><p>IT: <a href=""></a><br>001 889 3888 0800<br>Emergency: +82 458 785 789<br>services:: <a href=""></a></p></div>"
In the above string I want the phone number
Aug 17 '18 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,397
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 ;) )
Aug 17 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.