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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:20:49+00:00 2026-06-17T23:20:49+00:00

I used regexpal.com to test my regexp against the data WordPress is trying to

  • 0

I used regexpal.com to test my regexp against the data WordPress is trying to compare to and it fails, look at this and tell me if you see the problem?

The regexp

"#^json/(.+?)/?([a-zA-Z0-9]*)?$#"

The content to match

json/trips

These works, the previous one doesn’t

json/trips/0
json/trips/13
json/fullticket/9805048001130122361809

If I try all these in regexpal they all work, but in wordpress, only the one that doesn’t contain the id of the element I want to fetch fails the others work fine.

Interrestingly enough, the $matches return this:

array
0 => string 'json/trips' (length=10)
1 => string 't' (length=1)
2 => string 'rips' (length=4)
  • 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-17T23:20:50+00:00Added an answer on June 17, 2026 at 11:20 pm

    The answer after tweaking the wordpress rewrite rule a bit more ends up being:

    data/([^/]+)(/([a-zA-Z0-9\-]*))?$
    

    Note: i changed json to data in the new scenario so i don’t mess up the custom post type rules

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

Sidebar

Related Questions

I have the following JavaScript Regex As used in http://regexpal.com/ \[.*(\.jpg|\.png|\.gif|\.bmp|\.jpeg).*\] As use in
Used this http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html tutorial to understand the basic concepts, but having problems running my
used to be able to do this without any problems: for (data in dataArray)
I used Ember.ready function to add some keyboard binding like this https://github.com/greggyNapalm/firebat-overlord/blob/master/web_static/static/js/app/app.js#L24 is there
Used code I found on SO to use the COM based Acrobat Reader to
Anybody used Neural Network approaches for clustering data? Particularly ART Neural Network (Adaptive Resonance
I used Session[EmpName] = Convert.ToString(Request.QueryString[1]); lblEmployeeName.Text = Session[EmpName].ToString; to show the data in label
i used this code: List<string> lists=new List<string>(apple,orange,banana,apple,mang0,orange); string names; names=lists.Distinct() is that correct?
Used this StackOverflow answer to try an implement a submitless form. The page consists
Used this tutorial I have installed jogl, jocl, gluegen, joal libs and added its

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.