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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:23:14+00:00 2026-06-04T12:23:14+00:00

I am considering building a web server which routes requests by matching the url

  • 0

I am considering building a web server which routes requests by matching the url to a regex from a list of services that define a regEx property – the first service to match the url handles the request.

I am looking for advice. Has anyone done anything like this? Does using regexs like this sound like a bad idea? If so, what are the possible side effects?

  • 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-04T12:23:16+00:00Added an answer on June 4, 2026 at 12:23 pm

    Yes it is a little bad idea. You do not need to reinvent the wheel. For a web server, you will have probably basic requests, /users/all/phones or /items/cool/ascending/top10.. and you will not need advanced regular expressions. Even if you need, a good library Express handles them too. Have a look at ExpressJS Routing, it is already set and probably optimized, so you will not need to hassle with your own routing code.

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

Sidebar

Related Questions

I am considering building some services using the new Web API that's introduced in
I'm building a web application which will include functionality that takes MS Word (and
I am considering building an app in C++ that will be parsing text from
We are considering migrating our site from flash to silverlight, and also building additional
Considering that simple java code which would not work: public class Bar extends AbstractBar{
I'm in the research phase for a web application I'm considering building and need
I have been tasked with building a new web project from scratch, with the
I'm currently building a simple web application in PHP that other company's can use
I'm considering building an Android app for my HTC phone that contains tour guides
I'm building a web form in which administrators on my site can add XML

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.