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

The Archive Base Latest Questions

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

I have the following string. Andrew – BOB – Jay vs John Now all

  • 0

I have the following string.

Andrew – BOB – Jay vs John

Now all Four names can change at any time, my only true concern however is with isolating Jay vs John independent of the names before the constant in this, is that the format always follows

world1 - world2 - X vs Y 

How do I check for X vs Y disregarding the first 2?

I’ve tried.

'%- (.*?) Vs (.*)$%';

TO no avail.

Any help would be greatly appreciated.

Also – following a suggestion how do I deal with the test case in which I wish to disregard everything to the far left other than the name of the two participants — examples include..

www.GrindTimeNow.NET: Magz vs K-mo (Tryouts)

SMACK/ URL PRESENTS JC VS GA

POISONPEN.TV PRESENTS PH VS DIRT BAG DAN

KOTD - Rap Battle - Arsonal vs Illmaculate

DON'T FLOP - ‬Rap Battle - Arkaic Vs Dekay
  • 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-07T02:37:59+00:00Added an answer on June 7, 2026 at 2:37 am

    So, you just need to capture two names separated by ‘vs’ and some space. This should work:

    %(\w+)\s+vs\s+(\w+)%i
    

    See a demo at regexr

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

Sidebar

Related Questions

Let's say I have following string: string test = False; I can't loop the
I have following string task BLABLA@{taskId} @{BLABLA.title} and want to extract all placeholders from
I have following example string that needs to be filtered 0173556677 (Alice), 017545454 (Bob)
I have the following string: $string = 'https://i.stack.imgur.com/?oapQok.png blabla https://i.stack.imgur.com/p9*xp.png blabla https://i.stack.imgur.com/papsyewxp.jpg' I now
I have the following string: cn=abcd,cn=groups,dc=domain,dc=com Can a regular expression be used here to
I have the following string i need to parse to a date: 2012-01-31T08:41:12.5462495+01:00 now
I have following string: Test, User < test@test.com >, Another, Test < another@test.com >,
I have following situation: String a = A Web crawler is a computer program
I have the following string in a variable. Stack Overflow is as frictionless and
I have the following string: index 0 1 2 3 4 5 6 7

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.