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

Notepad++ dynamic "replace with"

I want to replace found result (with regular expression) by a dynamic space count.

This will be found by: (XY\w.*_\d\d )(\w.*)

XY_bbb_11 PT
XY_brtztsd_34 KJH
XY_bghg_44 LOP

Expected result:

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

XY_bbb_11       PT
XY_brtztsd_34   KJH
XY_bghg_44      LOP

Is it possible in Notepad++?

>Solution :

This can be done using Elastic TabStops plugin.

  1. Run plugin Manager and install Elastic Tabstops
  2. Go to Plugins > Elastic Tabstops and tick Enable
  3. tick Convert spaces to Elastic Tabs

Screenshot (before):

enter image description here

Screenshot (after):

enter image description here

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