Dave, assuming that the last hyphen within the quotes is the operative
delimiter, this works with your sample:
substr fs - f-1 of fs " f2
As for pattern, I think this is an example of what you are asking:
(':kwd' rem):out /* Stage name
Thus, your pattern could go like this depending on the exact syntax of
the ID (tested with your sample):
pattern toword '<A NAME="' output(":p id=") span("0123456789")
"_pgfId-" span("0123456789"):out output(".")
At this point, you might wish to verify the trailing context.
On 4/18/20 00:51, Dave Jones wrote:
<A NAME="50434546_pgfId-644511"></A>