Hello @xavier-xenoph,
It’s not very clear what you want to achieve, but, to my mind, you would like to change all records of your database file :
IPHERE | DATE: | HWID: | password: | audioid: | hashid : |as :
| hashid : |Am I right about it ?
If so :
Open your database file, in N++
Open the Replace dialog ( Ctrl + H )
SEARCH (?-s)^.+(?=\|.+\|$)
REPLACE Leave EMPTY
OPTIONS Wrap around and Regular expression ticked
ACTION Click on the Replace All button
Notes :
As usual, the (?-s) modifier means that the dot ( . ) matches a standard character, ONLY and NOT any *line-break character
Then the part ^.+ represents the longest range of characters of any line, but…
ONLY IF the condition, in the look-ahead, ( (?=\|.+\|$) ) is true. That is to say if it’s followed by two | symbols, with some characters between, ( \|.+\| ), which end each line ( $ )
Note that the | symbol have to be escaped as \|, to be interpreted as literal, as it’s a special regex character, too !
Due to the empty replacement zone, the selected range, of each line, is simply deleted
Best Regards,
guy038