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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove a row from text
Power Automate
Answered

Remove a row from text

(0) ShareShare
ReportReport
Posted on by 132

Hi i want top remove the last row from my text. How to do that? Do  I need to make a list first ? 

Zohaib1999_0-1708593359853.png

 

I have the same question (0)
  • Verified answer
    Deenuji_Loganathan_ Profile Picture
    6,255 Moderator on at

    @Zohaib1999 

     

    You can convert your text string into list then you can remove the last line.

    Please refer the below suggested actions for the same.

    Deenuji_0-1708594229181.png

     

    Thanks,

    Deenu

  • eetuRobo Profile Picture
    4,524 Super User 2026 Season 1 on at

    You can also do by simply using one Replace text -action. Use this Regular expression: ([^\n\r]*)$ and then just replace with %''%

    eetuRobo_2-1708605295617.png

     

    eetuRobo_3-1708605318088.png

     

    RowsText is before and Replaced is after:

    eetuRobo_1-1708605214432.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard