I need to trim a single whitespace in a large txt file using regex within Notepad++'s find and replace function.
The pattern is:
06.01.001.01.04
Including the space after the 4. All entries follow the same pattern of 2 numbers, dot 2 numbers dot, 3 numbers dot, 2 numbers dot, 2 numbers. There is no dot before or after the numbers.
My understanding is that I can replace the value found with the found value but with the following space removed.
Find (\\.\\d{2})\\s
Replace $1
If you have more numbered format, make it more explicit:
Find (\\d{2}\\.\\d{2}\\.\\d{3}\\.\\d{2}\\.\\d{2})\\s
Following may help you here.
Place in find following regex:
([0-9]{2}\.[0-9]{2}\.[0-9]{3}\.[0-9]{2}\.[0-9]{2})\s+
Place following in replace:
$1\n
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.