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

  • Home
  • SEARCH
  • 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 8428733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:08:13+00:00 2026-06-10T05:08:13+00:00

this is the route that makes problems: Route::set(‘api’, ‘api(/<action>(/<currency_data>(/<currency_value>)))’, array( ‘currency_data’ => ‘(\d\-\d)|(\w\-\w)’, ‘currency_value’

  • 0

this is the route that makes problems:

Route::set('api', 'api(/<action>(/<currency_data>(/<currency_value>)))',
    array(
        'currency_data' => '(\d\-\d)|(\w\-\w)',
        'currency_value' => '\d+(\.\d{1,2})?'
    ))
    ->defaults(array(
        'controller' => 'api',
        'action'     => 'get',
    ));

the url would be something like:

/api/currency/123-321/123.00

or

/api/currency/abc-cba/123

both scenarios are covered but at the end do not work, why?
the default rout is at the end of bootstrap(i know someone will suggest that)

tnx

  • 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-10T05:08:14+00:00Added an answer on June 10, 2026 at 5:08 am

    \d and \w only match one character. Therefore 123-321 does not match \d-\d and abc-cba does not match \w-\w.

    If this is not the problem then please give more information on how it “does not work”. What does work? What is the result you get, etc.

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

Sidebar

Related Questions

I have this route: {controller}/{id}/{action} Because I think it makes more sense from RESTful
Suppose this is my URL route: (r'^test/?$','hello.life.views.test'), How do I make it so that
I have a route that is suppose to match something like this localhost:3000/site/admin and
Consider a string that looks like this: RR1 S5 C92 This a rural route
In this article by Sam Saffron, he mentions that Stack Overflow has a route
I ran across some routes that followed this format: resources :foobar, except: create I
trying to use this route: from(activemq:profiles).aggregate(header(cheese)).batchSize(30).bean(ProfilesQueueService, saveContacts) Fails with: No signature of method: org.apache.camel.model.RouteType.aggregate()
I have the following URl: http://localhost:12981/BaseEvent/EventOverview/12?type=Film This is route: routes.MapRoute( Default, // Route name
UPDATE: I'm getting this error: (No route matches /docs/index.html... ) when accessing admin.example.com/docs/index.html The
I am receiving this error A route named 'MemberRoute' could not be found in

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.