Editor: batch replace in one field, also with regex [Official thread]

If you have a problem with the add-on editor batch multi replace post in this thread. This way I get notified. If you make a new thread I will likely miss it.

1 Like

How about changing multiple things in one field in many notes ?

You’re looking for “Find and Replace…”, which is a built-in Anki feature, which you can access from the browser.

2 Likes

Thanks, but how can i add many replacements

You must run it multiple times.

Great!
It would be good to know in advance that it uses rather Python-compatible than POSIX-compatible regex, so eg. one have to use rather \1 than $1 for backreferences. And that it operates rather on content that you see in HTML editor than on content you see normally in editor while adding/editing a note. It took me a while to figure it out.

@JBrown: Thanks for reporting the error. Because of my custom config I didn’t notice that for other people my add-on had a bug. I just uploaded a new version that should fix it. Could you update your add-ons, restart Anki and try again. If you find other errors please let me know.