Regular Expression Problem
Posted: 11 Dec 2023, 03:18
Hello,
I am about to give up on this simple regular expression substitution that work fine anywhere else but not with AutoHotkey:
The idea is to remove all linefeed `n sequence from a string so that when printed to a log it shows on a single line... The regular expression in the code above do not work...
Help would be appreciated.
I am about to give up on this simple regular expression substitution that work fine anywhere else but not with AutoHotkey:
Code: Select all
Text := "This is a test to see`nhow removing splitted lines using`nregular expression looks like when written to a log:`n`nExample 1`n`n`nExample 2`n`nEnd"
Log_Text := StrReplace(Text, "(`n)+", " ")
Help would be appreciated.