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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:10:35+00:00 2026-06-05T06:10:35+00:00

This is probably a simple problem, but unfortunately I wasn’t able to get the

  • 0

This is probably a simple problem, but unfortunately I wasn’t able to get the results I wanted…

Say, I have the following line:

"Wouldn't It Be Nice" (B. Wilson/Asher/Love)

I would have to look for this pattern:

" (<any string>)

In order to retrieve:

B. Wilson/Asher/Love

I tried something like "" (([^))]*)) but it doesn’t seem to work. Also, I’d like to use Match.Submatches(0) so that might complicate things a bit because it relies on brackets…

  • 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-05T06:10:36+00:00Added an answer on June 5, 2026 at 6:10 am

    Edit: After examining your document, the problem is that there are non-breaking spaces before the parentheses, not regular spaces. So this regex should work: ""[ \xA0]*\(([^)]+)\)

    ""       'quote (twice to escape)
    [ \xA0]* 'zero or more non-breaking (\xA0) or a regular spaces
    \(       'left parenthesis
    (        'open capturing group
    [^)]+    'anything not a right parenthesis
    )        'close capturing group
    \)       'right parenthesis
    

    In a function:

    Public Function GetStringInParens(search_str As String)
    Dim regEx As New VBScript_RegExp_55.RegExp
    Dim matches
        GetStringInParens = ""
        regEx.Pattern = """[ \xA0]*\(([^)]+)\)"
        regEx.Global = True
        If regEx.test(search_str) Then
            Set matches = regEx.Execute(search_str)
            GetStringInParens = matches(0).SubMatches(0)
        End If
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably an simple problem but would someone nice be able to give
It will be probably a simple problem, but I have been staring on this
This is probably a simple question, but i have been unable to find a
I know that this is probably a simple problem but I am new to
This is probably quite simple but I haven't yet been able to wrap my
This is probably a simple one but I cant get my head around it.
This is probably a very simple problem but forgive me as I am new.
This is probably a really simple problem, but I can't figure out how to
I am new so this is probably simple but I have looked everywhere and
This is probably quite a simple problem, but it's causing me to scratch my

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.