Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

append an existing string with notepad++

I have multiple text files opened in Notepad++. And each file is like this.

[11]
[205]
[77]

I’m searching for [[0-9]+]\s in regex mode, but I don’t know how to replace it to the output I need.

And I want to append a string like this in all opened files, like this.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

[11.0]
[205.0]
[77.0]

I’m searching for \[[0-9]+\]\s in regex mode, but I don’t know how to replace it to the output I need.

How to do this?

>Solution :

Use this regex for searching:

(\[\d+)(\])

and the following for replacing:

\1.0\2

You need to escape [ and ] in your pattern via a \ since they have a special meaning in the regular expression world.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading