Find and replace text with regex
-
I have the following problem and I hope you can help me with the following problem.
I would like to use Notepad++ to find texts that look like this:
{ 1000000013;1;Column;Salesperson Code; { 1000000014;1;Column;Country/Region Code ; { 1000000019;1;Column;VATRegistrationNo. ;these texts are to be replaced in such a way that everything that follows Column; contains only letters and numbers, except for the concluding semicolon.
So the result should look like:
{ 1000000013;1;Column;SalespersonCode ; { 1000000014;1;Column;CountryRegionCode ; { 1000000019;1;Column;VATRegistrationNo ;I have already tried it with regex, but unfortunately without success so far.
Does anyone have an idea for me how I can best realise this?
-
It is always discouraging, for someone that wants to reply to a question such as yours, to see inconsistencies in the before/after text, and/or in the description of what is wanted.
In your case, in your first line of your “after” text, you have a space in front of the final semicolon, but no space there in your “before” text. Is this just sloppiness on your part (thus, discouraging) or is this something you want the operation to do for you (insert that space)?
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login