Artikash / Textractor

Extracts text from video games and visual novels. Highly extensible.
GNU General Public License v3.0
2.14k stars 205 forks source link

Is there a way to make the ^ wildcard replace any number of characters instead of just a single one? #997

Open Uzukii opened 1 year ago

Uzukii commented 1 year ago

Let's say I want to replace/filter any text in brackets. I have to make multiple lines like this:

|ORIG|[^]|BECOMES| |END| |ORIG|[^^]|BECOMES| |END| |ORIG|[^^^]|BECOMES| |END| |ORIG|[^^^^]|BECOMES| |END| Etc.

Is there a shortcut for this? Rather, is there a shortcut for this using the Replacer extension. Since the Regex Replacement extension only has nuclear options via "[\u0100-\uffff]" (filters all european language and most special characters) and doesn't allow for only doing that to text in brackets, quotes, etc.

Blu3train commented 1 year ago

With the Regex syntax you can do everything. If you only need to make one change you can use the "Regex Filter" extension. If you need to do more you can use "Regex Replacer". I always use "Regex Replacer".

Regex Filter \[.*\]

Regex Replacer |REGEX|\[.*\]|BECOMES||MODIFIER|g|END|