by Mofi » Thu Nov 16, 2006 4:12 pm
I guess, you want this result:
10||1234567000000000|||blahblah
10||1234560000000000|||blahblah
10||1234567890000000|||blahblah
You can do that with a sequence of regular expression search and replaces as following macro shows.
The macro property Continue if a Find with Replace not found must be checked for this macro.
InsertMode
ColumnModeOff
HexOff
UnixReOff
Top
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^10|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^100|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^1000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^10000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^100000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^1000000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^10000000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^100000000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^1000000000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^10000000000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9][0-9]^)|"
Replace All "^100000000000|"
Find RegExp "%^(*||[0-9][0-9][0-9][0-9]^)|"
Replace All "^1000000000000|"
Find RegExp "%^(*||[0-9][0-9][0-9]^)|"
Replace All "^10000000000000|"
Find RegExp "%^(*||[0-9][0-9]^)|"
Replace All "^100000000000000|"
Find RegExp "%^(*||[0-9]^)|"
Replace All "^1000000000000000|"
Add UnixReOn at the end of the macro if you do not use UltraEdit style regular expressions by default - see search configuration. Macro command UnixReOff sets the regular expression option to UltraEdit style.