Find Replace in Script Editor with cr

Sean Cole (Pi) sean at pidigital.co.uk
Tue Apr 6 01:26:51 EDT 2021


Bob, Regex only appears to operate on the read of the text, so
    ;
in the *find* field will locate all of the places a semicolon is found, but
putting
    /n
into the *replace* field will not replace the ; with a cr

Brian, The project is huge and I don't yet have the time to invest in
porting it all to github just yet. As it is I have created my own simple
regex text operator that I copy/paste the script into.

https://www.dropbox.com/s/glq6pco70d3zgt3/Screenshot%202021-04-06%20at%2006.21.22.png?dl=0

Richard, I've tried in the Find, Find and replace of the script editor and
the Find/Replace from the main menu. I can't seem to place a carriage
return (or line feed or whatever) into the replacement field. This is what
I am trying to achieve. Replace ";" with "cr" in myScript. I can do it in
code, but not from the find/replace windows. :(

Sean



More information about the use-livecode mailing list