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 9046925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:46:31+00:00 2026-06-16T11:46:31+00:00

My request is one that can extract a number somewhat by a search. Example:

  • 0

My request is one that can extract a number somewhat by a search.

Example:
animalsOwned|4 would return an containing “4”

animals|3|2|1|3 would return an array containing “3”, “2”, “1”, “3”

This would make it easier for me during a file stream reader.
Thank you

  • 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-06-16T11:46:32+00:00Added an answer on June 16, 2026 at 11:46 am

    Try regular expression. It’s a powerful tool for simple text parsing.

    Imports System.Text.RegularExpressions
    Namespace Demo
        Class Program
            Shared Function Main(ByVal args As String()) As Integer
                Dim array As Integer() = ExtractIntegers("animals|3|2|1|3")
                For Each i In array
                    Console.WriteLine(i)
                Next
                Return 0
            End Function
            Shared Function ExtractIntegers(ByVal input As String) As Integer()
                Dim pattern As String = "animals(\|(?<number>[0-9]+))*"
                Dim match As Match = Regex.Match(input, pattern)
                Dim list As New List(Of Integer)
                If match.Success Then
                    For Each capture As Capture In match.Groups("number").Captures
                        list.Add(Integer.Parse(capture.Value))
                    Next
                End If
                Return list.ToArray()
            End Function
        End Class
    End Namespace
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Ajax request that can return more than one valid value, so
I have a request in from a client that would like one of their
I'm making a website that tend to handle all the request in one page
I've just noticed that if I do a MySQL request like this one: SELECT
One possible solution could be simple HTTP get or post request, but that wouldn't
I've created a miniature 'web server' that simply returns one message to any request
If I wanted to make one request, but return multiple groups of responses, how
How can I do several request in one HttpURLConnection with Java? URL url =
A submitted form on my site returns an array of request data that is
I've written a PHP script that makes a request to a search engine, accesses

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.