HOWTO : Replace first space in a line using Notepad++

Search for ^([^\s]*)(\s)

Replace with $1 AND_WHAT_EVER_STRING_YOU_WANT

Here is an example of searching for first space in a line and adding “',” to the string

2 Replies to “HOWTO : Replace first space in a line using Notepad++”

  1. For the second space, you can use ((\s){2}) as the find string. and $1_PLUS_WHATEVER_YOU_WANT_TO_REPLACE as the replace with option.

Leave a Reply to admin Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.