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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:48:34+00:00 2026-05-21T07:48:34+00:00

Regex parsing problem, I am putting together an embed video provider module for Drupal.

  • 0

Regex parsing problem, I am putting together an embed video provider module for Drupal.

For basic video pages the url is like this: http://v.ku6.com/show/EJEiKXHN1avFezNi.html so this regex works fine to parse the video code:
‘@v.ku6.com/show/([^”\&/]+).html@i’,

But many pages use this pattern http://v.ku6.com/special/show_4086312/ZP0DCEnRVpK4BiEU.html so I need to extract “ZP0DCEnRVpK4BiEU” but exclude the random 4086312 numbers there.

here’s the regex stuff I have so far:
‘@v.ku6.com/special/show_[what goes here?]/([^”\&/]+).html@i’,

  • 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-21T07:48:35+00:00Added an answer on May 21, 2026 at 7:48 am

    Try this:

    @v.ku6.com/special/show(?:_\d+)?/([^"\&/]+).html@i
    

    the (?:) is a non capturing group, the ? afterwards says it can be there or not and the \d+ is at least one number

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

Sidebar

Related Questions

I have a problem parsing a line with regex This is the line it
Having a problem with parsing Snort logs using the pyparsing module. The problem is
How to create (and is this possible) regexp parsing pascal-like function declaration with body
Context Using Ruby I am parsing strings looking like this: A type with an
I have simple regex for parsing this string: rawresp0 = <response> <comment>Привет.</comment> </response> I
I have heard that MSBuild 4.0 has increased Regex parsing support. However, I am
I`m parsing SQL query with C# Regex. I need also to make my pattern
Regex.IsMatch( foo, [\U00010000-\U0010FFFF] ) Throws: System.ArgumentException: parsing [-] - [x-y] range in reverse order.
What is a regex I can write in bash for parsing a line and
I am parsing some HTML source. Is there a regex script to find out

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.