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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:35:39+00:00 2026-05-26T15:35:39+00:00

Aside from writing custom code are there any existing features in .NET which allows

  • 0

Aside from writing custom code are there any existing features in .NET which allows me to parse information from part of a URL? So my input will be like the below:

\Shop-Pet\Dog\Large\Africa-Lionhound\27-80?color-Dark

Is there a any easy way instead of using string split and/or regex afterwards to extract information into an array like the below:

[shop,pet]
[PetType, Dog]
[BreedSize, Large]
[Country, Africa]
[OtherNames, Lionhound]
[Height, 27]
[Weight, 80]

Thanks

  • 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-26T15:35:40+00:00Added an answer on May 26, 2026 at 3:35 pm

    While not exactly what you need, Request.Url.Segments will return a string array of the different segments available to you. Given your example:
    /Shop-Pet/Dog/Large/Africa-Lionhound/27-80?color-Dark

    it would return something to you like

    {string[6]}
        [0]: "/"
        [1]: "Shop-Pet/"
        [2]: "Dog/"
        [3]: "Large/"
        [4]: "Africa-Lionhound/"
        [5]: "27-80"
    

    You would have to handle the QueryString separately.

    I don’t think there’s anything specifically like what you want, but Routes which are available in ASP.NET 4.0 could probably be setup to handle things exactly like you wanted.

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

Sidebar

Related Questions

Does anyone know if there is an easy way, aside from writing a custom
Aside from writing an alias or script, is there a shorter command for getting
Aside from DeployerFTP, are there any plugins that offer the ability to deploy a
Aside from the PEAR repository, which I find often has quite messy code with
In writing Win32 C/C++ code, is there any advantage (e.g. performance?) in using Windows-specific
Aside from the HelloWorld Tutorial, are there any other tutorials/books available with regards to
Aside from Integer.parseInt() handling the minus sign (as documented), are there any other differences
Aside from trying perldoc <module name> individually for any CPAN module that takes my
Aside from executing XP_CmdShell, which I have disabled in my SQL 2005 installation, what
Aside from enhanced user experience, do Ajax calls provide any significant performance benefit?

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.