Issue
How do I extract phone and email information from a description field in flutter
here is an example text
Good to know you!<br/><br/> <br/>Apply online today!
If you have any questions please contact fname@[email protected]<br/>theUser will reach out if we believe you would be a good fit.<br/><br/>
<br>111-222-3333</br>
I would like to get the phone#(111-222-3333) and email(fname@[email protected])
Thanks for your help
Solution
You can use String.Split("Your regex")
For the phone number please check this
Flutter Dart: How to extract a number from a string using RegEx
and for email here's email rejex use this package https://pub.dev/packages/email_validator
Answered By - Nassar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.