Den 2021-06-23 kl. 21:48 skrev Wim Stockman: > Is there a function in groff to find the position of a char in a string. > So I can split a string into more than one. > I found the substring function that can cut based on length. If I could my > marker in the string I could cut it there.
Heirloom troff has an .index request: .index R xx string : Store position where string occurs in xx in register R Perhaps it should be considered for inclusion in groff.