Search & Replace With Brackets

Hi !

i want to learn how can i search and replace in clipboard:

aaa.md to [[aaa]]

Thank you very much.

^ [[

$ ]]

Hey @drsn,

Not too difficult if you grok regular expressions.

-Chris


Find & Replace Text on the Clipboard ⇢ Example v1.00.kmmacros (5.3 KB)

Thank you very much. It dosen"t work me. I think i am doing something wrong.

Thank you for reply. It is working but just for "aaa.md". Actually I want to convert my files names after coping path names. for example "210113112527 bbb aaa.md" to [[210113112527 bbb aaa]] and and so on.

210113112530 cc dd.md to [[210113112530 cc dd]]
....

Thank you very much

Hey @drsn,

Parsing text is picky. You have to provide real-world data samples if you want accurate results.

Try this one.

-Chris


Find & Replace Text on the Clipboard ⇢ Example v1.01.kmmacros (5.4 KB)

Hi again, Thank you very much . after I delete "Dummy → Add to..." part, it is working fine for me. Thanks so much.

1 Like