web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How do I remove the bl...
Power Automate
Answered

How do I remove the blank line in all text in PAD?

(0) ShareShare
ReportReport
Posted on by 205
How do I remove the blank line in all text in PAD?
 
For example:
Variable %Text_Description% with the value:
 
 
“The picture shows mountains.
 
 
These mountains are very high.”
 
 
 
(* Note that there is an empty string in the text)
 
Thank you very much, I appreciate your help!
I have the same question (0)
  • Verified answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    Try this with Replace text -action with this regex: [\t ]*(?:\r?\n|\r)+
    And with Replace with: %''% or %' '% to have space between the two sentences.


    Result:



    Or if you don't want to use regex:
    1. Split text to split the text by lines

     
    2. Remove item from list with value %' '% (Remove all item occurences)

    3. Join text with space as delimiter


    All the steps:



    Result:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard