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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:50:20+00:00 2026-06-16T00:50:20+00:00

How can I validate a URL in perl. I mean, the query string has

  • 0

How can I validate a URL in perl. I mean, the query string has a specific order and all params have specific values (int or string or operator (%2B(+) ect..)).

example : http://www.mypage/question?name=john&age=21&operation=%2B

Can I control the order (name->age->operation) and the specific values of them?

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-06-16T00:50:21+00:00Added an answer on June 16, 2026 at 12:50 am

    Yes and no.

    No, you can’t control the order of the parameters as they’re submitted to you. Browsers may submit them in a different order, or the user may not be using a browser to submit the query to you.

    Yes, you can control the order of the parameters you submit. But, don’t rely on this.

    You can use Data::Validate::URI to validate a URL.

    You shouldn’t use a complicated RegEx for controlling parameter values. Either the parameter matches or it doesn’t. Either the parameter value is one of the expected options, or it isn’t. If it matches, do something. If it doesn’t match anything, don’t do anything. (Or do a 404, but that can be leveraged against you.) Using anything more complex than “this parameter value should be all numbers” is asking for trouble.

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

Sidebar

Related Questions

I am looking for a Java framework which can validate order of elements in
I have vote and votedown tables for posts. I can validate uniqueness within the
How can i validate the text length of the element that has an attribute.
How can I validate a string using Regular Expressions to only allow alphanumeric characters
Possible Duplicate: how can i validate a url in javascript using regular expression I
I need to validate a url in variable with jQuery, but can't use validate-plugin.
I have a Create-View like this ... <script src=@Url.Content(~/Scripts/jquery.validate.min.js) type=text/javascript></script> <script src=@Url.Content(~/Scripts/jquery.validate.unobtrusive.min.js) type=text/javascript></script> @using
I have URL entered by users. User can enter URI. [relative URI] How can
I have this regular expression to validate the URL: ^[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$^ . This regular expression
Can any one tell me that how validate the Foursquare URL in javascript function.

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.