make/functions/text (540 bytes)
1 #subst FROM,TO,TEXT # TEXT is the thing being operated against 2 #patsubst PATTERN,REPLACEMENT,TEXT # pattern can be %.c for example 3 #strip STRING # leading and trailing, good in conditionals 4 #findstring FIND,IN # returns empty string of the FIND 5 #filter PATTERN....[PATTERN],TEXT # all matches 6 #filter-out PATTERN....[PATTERN],TEXT # all non-matches 7 #sort LIST # space separated 8 #wordlist S,E,LIST # items from 1-based index S to E in LIST 9 #words TEXT # number of words in text 10 #firstword LIST # first one 11 #lastword LIST # last one 12 13 $(<++>)