I have the following text being passed by a Shortcut action to the Replace Text action
I want to replace the 5| at the start of the 2nd line with XXX
The match text \n5| finds the string to be replaced but \nXXX does not add back the newline. It just results in nXXX. How to add the newline so that 5| becomes XXX?