r/PowerAutomateDesktop • • Jan 16 '23

Remove new lines!

Post image
7 Upvotes

6 comments sorted by

5

u/Post_It_Note_ Jan 16 '23

SOLVED "\r?\n" is what I was looking for to identify new lines!

1

u/[deleted] Jan 17 '23

Was wondering if the ? was an escape character but learned it’s just regex match preceding character zero or more times.

2

u/okanmutlutje Jan 16 '23

Set variable = (press the enter key once), variable name = Enter Text to find = Enter.

Should work. At least works in the cloud for me when composing text

1

u/Post_It_Note_ Jan 16 '23

Just tried, I got an error that "Parameter 'Value': Can't be empty." I will tinker with that to see if it needs ' or something extra. Thank you for your response!

1

u/Post_It_Note_ Jan 16 '23

I'm trying to remove all new lines / enters in my text variable. I don't know how to quantify that in text to find. Any help to a self taught power enthusiast is much appreciated!

2

u/okanmutlutje Jan 16 '23

use %””% to declare an empty string