This page is for the Obsidian plugin, "File Info Panel", available here: https://github.com/CattailNu/obsidian-file-info-panel-plugin. The plugin (in addition to other file statistics) has a word frequency report that can be separated into 2 lists using regular expressions (regex). This page has simple examples of how to write the necessary regex setting and will build the expression for you to match a list of words.
This default list is from https://en.wikipedia.org/wiki/Most_common_words_in_English.
The filter works on a lowercase list of works in your document with the symbols removed.
Example: Your document contains: "The cat ate a mushroom."
File Plugin Data:
a
ate
cat
mushroom
the
Use "\b" for the word boundary.
Example: Match the word "cook".
File Plugin Regex: (\bcook\b)
Match the start of a word:
Example: Match words that start with "the": "there", "their", "theater". "(.)*" means any character(s) 0 or more times.
File Plugin Regex: (\bthe(.)*\b)
Match the end of a word:
Example: Match words that end in "st": "best", "most", "last", "mast".
File Plugin Regex: ((.)*st\b)
Match multiple words.
Example: Match "the" or "boat". "|" means "or".
File Plugin Regex: (\bthe\b)|(\bboat\b)