Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 581247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:33:30+00:00 2026-05-13T14:33:30+00:00

Need to take a string in vb and split it. Also need to look

  • 0

Need to take a string in vb and split it. Also need to look through the two returned values and return the value which contains “domain1.com”. Pipelines are the delimiter.

txtEmailFrom.Text = "john@huno.com|james@domain1.com"
Dim brokened() As String
brokened = Split(txtEmailFrom.Text, "|")

Dont know where to go from here…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:33:31+00:00Added an answer on May 13, 2026 at 2:33 pm
    txtEmailFrom.Text = "john@huno.com|james@domain1.com"
    Dim brokened() As String
    dim email as string
    dim emailSplit() as string
    brokened = Split(txtEmailFrom.Text, "|")
    
    for email in brokened
       emailSplit = Split(email, "|")
       if emailSplit(1) = "domain1.com" then
          Console.WriteLine(email)
       end if
    next
    

    I am writing this without IDE & this could be VB6 style.
    Hopefully, it should give you an idea of converting to VB.net

    EDIT: Ofcourse, it will be better to add checks for array bounds before this line if emailSplit(1) = ....

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to be able to take a string like: '''foo, bar, one, two,
I have the need to take a string argument and create an object of
I need a Regex Statement (run in c#) that will take a string containing
I need to take a string, and shorten it to 140 characters. Currently I
For this code i need to take a string like <b>hey</b> more text<b>hey2</b> other
Instead of going JSON a json string and using $.parseJSON, I need to take
I need to take a web page and extract the address information from the
I need to take a paragraph of text and extract from it a list
I need to take a BufferedImage and convert it to YCbCr format so that
I need to take production data with real customer info (names, address, phone numbers,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.