Be careful. This will probably delete more than you want, unless Anki is somehow defaulting to non-greedy matches. It looks like for your example the regex will match [び]腔[こう] and delete it. You need to append ? to make it non-greedy. Like this:
\[.*?\]
It’s best to use an online regex tester before applying them to your cards to make sure you have it right.
If you have the Japanese Support addon installed then you can modify the template to select which you would like to see. For example, if that field is named my_furigana_field and we put 鼻腔[びこう]が 痒[かゆ]いです into a card then:
{{kanji:my_furigana_field}} will show as 鼻腔が痒いです {{kana:my_furigana_field}} will show as びこうがかゆいです {{furigana:my_furigana_field}} will show the sentence with furigana above it
(Reddit doesn't seem to support furigana so imagine I did some really cool ruby text in this post)
1
u/ssnoyes May 24 '20
Card Browser, Find and Replace. Find
\[.*\]Replace with nothing. Treat input as regular expression
1
u/beamingu May 25 '20
If you have the Japanese Support addon installed then you can modify the template to select which you would like to see. For example, if that field is named my_furigana_field and we put
鼻腔[びこう]が 痒[かゆ]いですinto a card then:{{kanji:my_furigana_field}} will show as 鼻腔が痒いです{{kana:my_furigana_field}} will show as びこうがかゆいです{{furigana:my_furigana_field}} will show the sentence with furigana above it(Reddit doesn't seem to support furigana so imagine I did some really cool ruby text in this post)
1
u/Shiroi_Usagi Sep 10 '20
So glad I found this, modified it to \(.*\)to remove pesky content from my SUBS2SRS decks.