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 Automate
Suggested Answer

Parse text

(0) ShareShare
ReportReport
Posted on by 6
Please help me extract Microsoft Inc. and Abc Ltd. from below text. The information could be in multiple lines in few scenarios.

This Eleventh Amendment to the Excel Services Agreement (this “Amendment”), is entered into as of July 1, 2024 (the “Amendment Effective Date”) by and between Microsoft  Inc.(“Vendor”) and Abc Ltd. (“Customer”).
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,549 Super User 2026 Season 1 on at
    Note that your example texts "Microsoft  Inc." has two spaces in between "Microsoft" and "Inc.".
     
    Try Regex: \b[A-Z][a-zA-Z]*(?:\s+[A-Z][a-zA-Z]*)*\s+(?:Inc\.|Ltd\.)
    That should work with one or multiple spaces in between "Company" and "Inc." or "Ltd."
     


  • SN-07111935-0 Profile Picture
    6 on at
    Thank you for looking into this.
    Is there a dynamic way to pull these details based on constants ("Vendor") and ("United")? The names does not always ends with Inc. or Ltd. but these values will be constant which comes after the actual name. Also the beginning of Vendor name will always have "by and between" whereas customer name will always have "and" in the beginning.
  • Suggested answer
    eetuRobo Profile Picture
    4,549 Super User 2026 Season 1 on at
    Replace text -action could work with that.

    First replace anything before "by and between" with empty string. Regex: ^(.*?)\s+by and between


    Then replace everything after first "(" with empty string. Regex: \((.*)

    Then replace everything before " and" with empty string. Regex: ^(.*?)\s+and
     
    Then again everything after first "(" with empty string. Regex: \((.*)

    Code to copy to your editor:
    SET TextToParse TO $'''This Eleventh Amendment to the Excel Services Agreement (this “Amendment”), is entered into as of July 1, 2024 (the “Amendment Effective Date”) by and between Microsoft  Inc.(“Vendor”) and Abc Ltd. (“Customer”).'''
    Text.Replace Text: TextToParse TextToFind: $'''^(.*?)\\s+by and between''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''%''%''' ActivateEscapeSequences: False Result=> Replaced
    Text.Replace Text: Replaced TextToFind: $'''\\((.*)''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''%''%''' ActivateEscapeSequences: False Result=> Vendor
    Text.Replace Text: Replaced TextToFind: $'''^(.*?)\\s+and''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''%''%''' ActivateEscapeSequences: False Result=> Customer
    Text.Replace Text: Customer TextToFind: $'''\\((.*)''' IsRegEx: True IgnoreCase: False ReplaceWith: $'''%''%''' ActivateEscapeSequences: False Result=> Customer
    




    test with different company names:

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard