Regular Expressions on Template Fields

Here is what I would do, and this is using JavaScript Execution Commands, so please take care when running any script like this.

This needs to be placed at the top of your file. The underscores are for whitespace control, you can modify them to fit your purpose. (I might have got the order of the _ and * wrong, try swapping if this doesn’t work)

<%_*
	let title = tp.file.title;
	var keyTerm = '';
	if (title.startsWith("Term ")) {
		// You can use a more complicated extraction system like regex, 
		// but slice should work if you're only extracting the rest of the title
		keyTerm = title.slice(5);
	}
_%>

And then anywhere you want to access that that value, you can insert it by using

<% keyTerm %>
5 Likes