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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:56:55+00:00 2026-05-18T21:56:55+00:00

string src = portfolio1, portfolio2, portfolio20, portfolio300; I’d like to match all strings that

  • 0
string src = "portfolio1, portfolio2, portfolio20, portfolio300";

I’d like to match all strings that are of the pattern @”portfolio\d”
where \d can be anywhere from 1-3 digits in length. I have read that the use of {a, b} should work, so I tried:

pattern = @"portfolio\d{1, 3}"

Searching in the string, src, for this pattern returned an empty set. the following patterns worked partially:

pattern = @"portfolio\d"
pattern = @"portfolio\d{1}"
  • 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-18T21:56:56+00:00Added an answer on May 18, 2026 at 9:56 pm

    Try this:

    pattern = @"portfolio\d{1,3}"
    

    Note that you should not put a space in between the brackets, as you have in your example. That’s why it didn’t work right.

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

Sidebar

Related Questions

How do I match an URL string like this: img src = https://stackoverflow.com/a/b/c/d/someimage.jpg where
I'm trying to implement a filecopy method that can match the performance a copy
int length = strlen(src); char *structSpace = malloc(sizeof(String) + length + 1); String *string
private void save(Rectangle src, Rectangle dest, string fName, int width, int height, Bitmap file)
I'm looking for a simple java lib/src to highlight differences between two Strings, case-sensitive.
//This source is a line read from a file String src = 23570006,music,**,wu(),1,exam,\Monday9,10(H2-301)\,1-10,score,; //This
Consider following code for an android app; private String GetDistance(String src, String dest) {
I have a single string that contains the command-line parameters to be passed to
I am making an extension. public static MvcHtmlString Image(this HtmlHelper helper, string src, object
So basically I have a function which is something like that : public static

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.