Word Regex
From notebook
Line 16: | Line 16: | ||
Find ([0-9]) ([A-z]) Replace \1#\2 | Find ([0-9]) ([A-z]) Replace \1#\2 | ||
Find #*([!A-z, ]) Replace #\1 to remove ローマ字 of Japanese if need be | Find #*([!A-z, ]) Replace #\1 to remove ローマ字 of Japanese if need be | ||
+ | |||
+ | To created categories for Moodle | ||
+ | |||
+ | Find ::(*):: | ||
+ | |||
+ | Replace $CATEGORY: $course$/top/013_B_Part-Time_Worker_DK/\1^p^p::\1:: |
Latest revision as of 05:05, 14 July 2023
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
To created categories for Moodle
Find ::(*)::
Replace $CATEGORY: $course$/top/013_B_Part-Time_Worker_DK/\1^p^p::\1::