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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:03:22+00:00 2026-05-11T13:03:22+00:00

Imagine that users are inserting strings in several computers. On one computer, the pattern

  • 0

Imagine that users are inserting strings in several computers.

On one computer, the pattern in the configuration will extract some characters of that string, lets say position 4 to 5. On another computer, the extract pattern will return other characters, for instance, last 3 positions of the string.

These configurations (the Regex patterns) are different for each computer, and should be available for change by the administrator, without having to change the source code.

Some examples:

         Original_String       Return_Value User1 -  abcd78defg123         78 User2 -  abcd78defg123         78g1 User3 -  mm127788abcd          12 User4 -  123456pp12asd         ppsd 

Can it be done with Regex? Thanks.

  • 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. 2026-05-11T13:03:23+00:00Added an answer on May 11, 2026 at 1:03 pm

    To have a regex capture values for further use you typically use (), depending on the regex compiler it might be () or for microsoft MSVC I think it’s []

    Example

    User4 -  123456pp12asd         ppsd   

    is most interesting in that you have here 2 seperate capture areas. Is there some default rule on how to join them together, or would you then want to be able to specify how to make the result?

    Perhaps something like

    r/......(..)...(..)/\1\2/  for ppsd r/......(..)...(..)/\2-\1/ for sd-pp 

    do you want to run a regex to get the captures and handle them yourself, or do you want to run more advanced manipulation commands?

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

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer First off, make sure the WebService is set to Dynamic.… May 11, 2026 at 11:49 pm
  • Editorial Team
    Editorial Team added an answer You want them to be easily editable which means you… May 11, 2026 at 11:49 pm
  • Editorial Team
    Editorial Team added an answer I would recommend you take a look at System.ComponentModel.TypeConverter. This… May 11, 2026 at 11:49 pm

Related Questions

I'm adding some functionality to my site so that users can upload their own
I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible
Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx.
In one of my ASP.NET Web Applications, I am using a BulkEditGridView (a GridView

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.