D
D
Dim Boy2018-04-10 00:21:41
Regular Expressions
Dim Boy, 2018-04-10 00:21:41

How to remove spaces between numbers in Notepad++?

There is a base with numbers like:
12345 67
12345 68
12345 69
I find a space (\d\s) , but I can’t replace (\d) - the number before the space is overwritten...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Moskus, 2018-04-10
@twix007

You have strange notions about regular expression syntax.
You need to search (\d)\s(\d)and replace with $1$2.
Your code, on the other hand, looks for a digit followed by a space (not a space between digits, so a space at the end of the line also matches the pattern) and captures this pair in the capture group. And replaces simply with the letter "d" (the brackets and the symbol "\" in this expression are devoid of syntactic meaning).

Q
Quark_rgb, 2018-04-10
@Quark_rgb

B find (\s)(\d+)
B replace $2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question