I have question how to replace whitespace with _ using notepad++ regex between [] characters
Example :
sl.[Posting date] AS TIME,
'0000-00-00' AS edate,
sl.[Document No_],
[Original Currency Factor]
Result
sl.[Posting_date] AS TIME,
'0000-00-00' AS edate,
sl.[Document_No_],
[Original_Currency_Factor]
Find what:
[.+(\s)+.+]Replace with:
_Also don’t forget to select
Regular expressionradio button inSearch modesection.Update:
Ok, I have one solution but it’s dirty:
You need to perform several replacements to do that.
Find what:
(\[.*)\s(.*\])Replace with:
\1_\2Repeat using
Replace alluntil there will be no occurrences.