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 / Get specific data (lin...
Power Automate
Unanswered

Get specific data (line) from txt file.

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm Looking for a way to extract specific info from .txt file.

I have several .txt files having all te same name but are stored in different folders.

In order to extract and store this file i need to rename them first.

- taking in account that i am using the free version of the PAD

The value needed is located around line 205 depending on the file.

what i need the data 2th lines after specific word "Paramètres:"

16qXC2B XAQ-3a_

Erik33_0-1649417735368.png

the info just after (Id=0) is not needed.

the info (value) can have space

the info (value) has no fixed number of characters

Thank you

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Is the variable text or list?  If it is text, make it a list by using Split Text and use New Line as the delimiter, this variable should save as %TextList%

    Loop 200 to %TextList.Count% increment of 1

        If %TextList[LoopIndex]% = Parameter:

            Set %TextValue% = %LoopIndex + 2%

            Exit (Loop)

        EndIf

    End (Loop)

     

    then use replace text to remove the (ID=0)

     

    good luck!

  • UK_Mike Profile Picture
    on at

    Could always regex it, doesn't matter what line the value is on.

    The Id number after the value could be any digit also.

    Ive included several line breaks ( zero to 5)

     

    (?<=Parameter:\r{0,5}\n{0,5})(.+)(?=\(Id=\d*\))

     

     

    Screenshot 2022-04-08 153026.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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard