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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:57:00+00:00 2026-06-07T05:57:00+00:00

Examples. URL PRESENTS MATH HOFFA VS T-REX ROUND 1 URL PRESENTS MATH HOFFA VS

  • 0

Examples.

  • URL PRESENTS MATH HOFFA VS T-REX ROUND 1
  • URL PRESENTS MATH HOFFA VS T-REX ROUND 2
  • URL Presents Young Miles vs Rich Dolarz Round 2
  • SMACK/ URL PRESENTS AYE VERB vs O-RED
  • SMACK/ URL PRESENTS ARSONAL VS CALICOE (FULL BATTLE))
  • SMACK/ URL PRESENTS Rich Dolarz VS X-Factor (FULL BATTLE))
  • GrindTimeNow.NET: Stainless vs 3pfd
  • GrindTimeNow.NET: 5vs5 League Announcement! + 40 city tryout tour!
  • http://www.GrindTimeNow.NET: Magz vs K-mo (Tryouts)
  • GrindTimeNow.Net: Scotty P vs Farnum Hosted by Murs, Madd Illz and Wordsworth
  • GrindTimeNow.Net: Kaveman Brown vs Real Talk
  • GrindTimeNow.Net:DIRT VS Richard CRANIUM
  • GrindTimeNow.Net:Jonny Storm vs Real Talk (Paid Dues 2012)

I want to match Name vs Name – The string isn’t always consistent e.g Grindtimwnow.net, URL PRESENTS and SMACK/ URL PRESENTS – I understand I may need to use up to three different regexs which I can work with.

The problem I’m having, having tried the following

$ourRegex =  "/(\b\w+\W+){0,3}vs(\W+\w+){0,3}/";
$ourRegex =  "/:\s+(.+?)\s+Vs\s+(.+)$/";
$ourRegex = '/\s+(.+?)\s+Vs\s+(.+)$/';

Dosen’t match all of the contenders name, I get things like Jonny vs Talk – Names can have up to three/four words in them, is there any simple solution or do I need to run several different regexs and build a function to first clean-up the stirng and then regex it?

  • 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-07T05:57:01+00:00Added an answer on June 7, 2026 at 5:57 am

    I think any regex you use will have problems since it looks like the “vs” part isn’t necessarily preceded and followed by a space (in the “GrindTimeNow.NET: 5vs5 League Announcement! + 40 city tryout tour!” example)

    The problem I see is that the NAME component could contain the characters “vs” which would confuse the regex.

    If spaces are used to precede and follow the “vs” then this regex should work

    $ourRegex =  "/(.*) [v|V][S|s] (.*)/";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a string that contains a url (for examples sake, we'll call
Based on the following example URL structure: mysite.com/mypage.aspx?a=red&b=green&c=blue Pages in the application use ASP.net
Suppose i had a url as below url = 'https://www.advertise-example.com/ads/2022/presents' Now i am trying
var exampleURL = '/example/url/345234/test/'; var numbersOnly = [?] The /url/ and /test portions of
I need to call an API with POST arguments, for example: URL = http://localhost/myAPI/
I have this URL example.com/photo?people I want to rewrite this URL in the form
I have an edit page with url example.com/product/edit/11 Now if the validation is false
When I look at my website using the url example.com I get something like
I need a certain part of current URL. Say for example the URL is:
I have a script which allows to display favicons based on the url: Example

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.