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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:51:55+00:00 2026-05-28T18:51:55+00:00

I’m looking for a way to go through a string and replace all instances

  • 0

I’m looking for a way to go through a string and replace all instances where the second and third characters will always be different but the rest will be the same. For example, if I had:

"ú07ú" to be replaced with "ú07 ú" 
"ú1Eú" to be replaced with "ú1E ú"
"ú12ú" to be replaced with "ú12 ú"

I know I should use Regular Expressions, but they baffle me. I’m pretty sure the syntax will be something like:

Content = Regex.Replace(Content, @"ú...", “ú.. ú");

But obviously this isn’t working. Can any RegEx gurus lend a hand please?

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. Editorial Team
    Editorial Team
    2026-05-28T18:51:57+00:00Added an answer on May 28, 2026 at 6:51 pm

    Looks like you want:

    Content = Regex.Replace(Content, @"ú([^ú]+)ú", @"ú$1 ú");
    

    This regex:

    ú([^ú]+)ú 
    

    Means: match ú, then at least one character that isn’t ú (and capture this part), then another ú. If you want it to only match exactly two characters in the middle, then change [^ú]+ to [^ú]{2}

    Then we replace the whole thing by:

    ú$1 ú
    

    Which is: ú, then the captured part of the string, then a space and ú again.

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

Sidebar

Related Questions

I am looking for a way to do some string formatting through Grails JSON
I am looking for a way to search through every users profile using the
I'm looking for a way to search through our subversion repository or just packaged
I'm looking for a way to page through a Python iterator. That is, I
I'm looking for a way to authenticate users through LDAP with PHP (with Active
I am looking for a way to set permissions on a virtual directory through
I'm looking for a way to find the status of a live stream through
I wonder if anyone could suggest the best way of looping through all the
For all jQuery experts, looking for a clean way to remove a span, and
I'm looking for a way to loop through the columns of a table to

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.