Getting Strings Before and After a Keyword

How about this attempt?

image
Extract 2 Words Before and After Spain.kmmacros (2.9 KB)

Or this one:

image
Extract 2 Words Before and After Spain 2.kmmacros (2.9 KB)

1 Like