@Vasile-Caraus ,
Here are some takeaways from this problem. Hopefully, you will remember these, and act accordingly in the future:
The documentation at
https://npp-user-manual.org/docs/searching/ describes all the proper syntax for searching and replacements. In it, you would find the list of \-escapes that are allowed in the REPLACE WITH field (
https://npp-user-manual.org/docs/searching/#substitution-escape-sequences). You will notice that the \s and \S are
not valid sequences in that field, as
@guy038 tried to explain.
If you want to search for text that contains spaces, the space character or escape sequence must go in the FIND WHAT, not in the REPLACE WITH
The quality of answers you receive is directly proportional to the quality of the question you ask
Other advice: you have been pointed to the documentation many times over your 5+ years of visiting this forum. You should take advantage of that resource, and read and study that document.
----
Do you want regex search/replace help? Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you. All example text should be marked as literal text using the </> toolbar button or manual Markdown syntax. To make regex in red (and so they keep their special characters like *), use backticks, like `^.*?blah.*?\z`. Screenshots can be pasted from the clipboard to your post using Ctrl+V to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have and the text you want to get from that data; include examples of things that should match and be transformed, and things that don’t match and should be left alone; show edge cases and make sure you examples are as varied as your real data. Show the regex you already tried, and why you thought it should work; tell us what’s wrong with what you do get. Read the official NPP Searching / Regex docs and the forum’s Regular Expression FAQ. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.