Word Regex

From notebook

(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
Puts "placemarker" between English and non English.
Puts "placemarker" between English and non English.
[https://wordmvp.com/FAQs/General/UsingWildcards.htm a regex explanation site]
[https://wordmvp.com/FAQs/General/UsingWildcards.htm a regex explanation site]
 +
 +
To convert word cards to tests
 +
Find ^t Replace ^p (wildcards and sounds like OFF)
 +
Find ^13([!A-z]) (all Japanese on a new line) Replace  \1 (the same Japanese after a space not a new line)
 +
Find ^13([A-z]) (all English on a new line) ^13=\1 (the Same English after a equals sign on a new line)
 +
Add in the numbers by hand immediately after the equals signs
 +
Find ([0-9]) ([A-z]) Replace \1#\2
 +
Find #*([!A-z, ]) Replace #\1 to remove ローマ字 of Japanese if need be

Revision as of 23:48, 6 May 2021

To remove questions? Before their answers. search box ^13*\? replace box ^13 (leaves only "Before their answers")

([A-z])([!A-z, ]*^13) Replace \1placemarker\2 Puts "placemarker" between English and non English. a regex explanation site

To convert word cards to tests Find ^t Replace ^p (wildcards and sounds like OFF) Find ^13([!A-z]) (all Japanese on a new line) Replace \1 (the same Japanese after a space not a new line) Find ^13([A-z]) (all English on a new line) ^13=\1 (the Same English after a equals sign on a new line) Add in the numbers by hand immediately after the equals signs Find ([0-9]) ([A-z]) Replace \1#\2 Find #*([!A-z, ]) Replace #\1 to remove ローマ字 of Japanese if need be

Personal tools