Delete all lines with pipe symbol
Posted: 25 Apr 2024, 07:27
I would like to use RegExReplace to delete all lines in a text that contain a pipe symbol |.
Thank you for your help.
Thank you for your help.
Code: Select all
; Before:
str := "This is the first sentence`nThis is | the second sentence`nThis is the third sentence`nThis is the | fourth sentence.`nThis is the fifth sentence.`nSixth sentence."
; Result:
str := "This is the first sentence`nThis is the third sentence`nThis is the fifth sentence.`nSixth sentence."