Word Regex

From notebook

(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision not shown)
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
 +
 +
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::

Personal tools