Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove empty lines
#1
In the following code, using the replacerx function always takes effect, but using the findreplace function sometimes does not take effect.
I want to use the findreplace function because it has lower resource consumption.

Macro Macro17
Code:
Copy      Help
out

_s=
;Node,ReleaseDate,SMBIOSBIOSVersion
;
;DESKTOP-3URCFPT,20131216000000.000000+000,F1

_s.trim; _s.findreplace("[][]", "[]") ;;Sometimes does not take effect
;_s.replacerx("\r\n?\r\n" "[]") ;;Always takes effect
out _s


Messages In This Thread
Remove empty lines - by Davider - 06-27-2025, 11:03 PM
RE: Remove empty lines - by Davider - 06-28-2025, 07:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)