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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:10:16+00:00 2026-05-12T12:10:16+00:00

I am hoping that this will have a pretty quick and simple answer. I

  • 0

I am hoping that this will have a pretty quick and simple answer. I am using regular-expressions.info to help me get the right regular expression to turn URL-encoded, ISO-8859-1 pound sign (“%A3”), into a URL-encoded UTF-8 pound sign (“%C2%A3”).

In other words I just want to swap %A3 with %C2%A3, when the %A3 is not already prefixed with %C2.

So I would have thought the following would work:

Regular Expression: (?!(\%C2))\%A3
Replace With:       %C2%A3

But it doesn’t and I can’t figure out why!

I assume my syntax is just slightly wrong, but I can’t figure it out! Any ideas?

FYI – I know that the following will work (and have used this as a workaround in the meantime), but really want to understand why the former doesn’t work.

Regular Expression: ([^\%C2])\%A3
Replace With:       $1%C2%A3

TIA!

  • 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-12T12:10:16+00:00Added an answer on May 12, 2026 at 12:10 pm

    Why not just replace ((%C2)?%A3) with %C2%A3, making the prefix an optional part of the match? It means that you’re “replacing” text with itself even when it’s already right, but I don’t foresee a performance issue.

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

Sidebar

Related Questions

I'm hoping that someone has found a way of doing this already or that
I'm concerned that this might be working on an NP-Complete problem. I'm hoping someone
I've never been much for math and I'm hoping that someone can help me
I am fairly new at using the ASP.NET MVC framework and was hoping that
I never found an optimal solution for this problem so I am hoping that
I'm hoping that it isn't to pass each as a parameter to the controller
I'm running into a mental roadblock here and I'm hoping that I'm missing something
I was hoping someone could validate my assumptions before I recommend that my client
Is it possible to identify classes that implement IDisposable. I was hoping to do
I'm having a problem with the WPF Tab View control that I was hoping

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.