How to Remove Size Tags from Text in Notepad++

0
7
Asked By CuriousCoder88 On

I'm a bit of a coding beginner and I'm working on the English patch for a trading card game. I need to edit the translation cache but the new method I'm using doesn't support text resizing code, so I have to remove all instances of text that look something like this: Text to Keep. I'm using Notepad++ for this task, and I want to make sure I keep the actual text inside the size tags while getting rid of the tags themselves.

2 Answers

Answered By HelpfulLucy On

Make sure you're switching to regex mode in Notepad++! If you're having trouble getting it to work, try using `<size[^>]*>` followed by an empty string in the replace field. This should help you delete those tags without removing the text you want to keep.

CuriousCoder88 -

Thanks, I appreciate the tips! I'll give these a shot.

Answered By RegexWizard42 On

You can use the regex pattern `]*>` to find those size tags. It should catch anything that starts with <size... and ends with . Just replace it with an empty string to delete the tags while keeping the text intact. Just make sure to test it out first before applying it broadly.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.