I'm writing a new plugin and as part of a function, I need to check that a register contains a particular pattern.
I checked the official documentation but couldn't manage to use any of the search()
or substitute()
functions for this purpose.
Any idea how this could be done?
(Suppose the register is "o
and the pattern is Image).
Thanks.