Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Match comments
#8
@Kevin

merge multiple blank lines into one blank line success

Macro Macro4
Code:
Copy      Help
_s.getsel
_s.replacerx("(?:(?:(?!\n)\s)*\n){2,}" "[][]") 
mes _s
out _s

#ret
,,ret DT_Ret(hDlg 1)
,,;ret DT_Ret(hDlg 1) ;;comment
,,
,,


ret
;messages2
sel wParam
,case IDOK 
,
,
,case IDCANCEL
,
,
,
ret 1

At present, there is only one problem

Using the following code, empty lines are removed
Huh :
______________________________________________________
            ss.replacerx("^\040.+$|\040\;\;.+" "")
             ss.replacerx("^\040.+$|\040\;\;.+|\011\040.+" "")

______________________________________________________
[Image: 1.png]


Messages In This Thread
Match comments - by macman - 01-26-2021, 03:25 AM
RE: Match comments - by redbull2k - 01-26-2021, 12:46 PM
RE: Match comments - by macman - 01-26-2021, 11:41 PM
RE: Match comments - by Kevin - 01-26-2021, 11:54 PM
RE: Match comments - by macman - 01-27-2021, 01:44 AM
RE: Match comments - by Kevin - 01-27-2021, 02:16 AM
RE: Match comments - by macman - 01-27-2021, 03:03 AM
RE: Match comments - by macman - 01-29-2021, 12:50 AM
RE: Match comments - by Kevin - 01-29-2021, 04:26 AM
RE: Match comments - by macman - 01-29-2021, 05:44 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)