I am using Notepad++ (version 6.9.2)
I have a fixed width flat file database that I need to re-arrange and cleanup.
Example of file:
0001168500Mel Maenyey Legal College 91PO Box 867 Lutghjhe 403003Jellisa Moneyey 07 3660 2551 07 3660 2211 Jellisa@gglegalcollege.com.nz
Here is my current 'find' regex:
^(.{10})(.{100})(.{2})(.{50})(.{50})(.{50})(.{4})(.{2})(.{60})(.{20})(.{20})(.{80})
and here is my 'replace' regex:
"$1","$2","$3","$4","$5","$6","$7","$8","$9","$10","$11","$12"
These work well however I would like to:
- not copy over the padding spaces (right or left)
- Remove left '0' (zeros) from numerical values - none in this example file but there are some in other files.
I have searched and can't find examples of where this might be possible in the same regex. I could do another regex after but if there is something quick and easy to add to this one it would be nice ;-)