I am parsing a list of code numbers, they have a pattern of 12345.1211
. They are space
delimited.
They sometimes will have a space followed by one - three addition number patterns like:
1221.121 11 111.111111 874.95 1211
I have a regex: [0-9]+\.[0-9]+
**
It finds a decimated number like 12345.1211
as . I encapsulate the regex with (
& )
and use \1\n
to break each code with a newline.
I am using Notepad++ with find an replace. But the regex falls short with the space-included numbers. The extra numbers endup on the same line as the next pattern.
Example:
1221.121 11 111.111111 874.95 1211 456.155
I got:
1221.121
11 111.111111
874.95
1211 456.155
Is there anything I can do to optionally include the extra numbers separated by a space?