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 / Extract data from webp...
Power Automate
Answered

Extract data from webparts

(0) ShareShare
ReportReport
Posted on by 5

Hi, i am stuck in extract data from webparts ive already try to use regex but without sucess.

 

The regex works fine for pattern a part of text that contains "consta" e a part that contains an alphanumeric code.

 

/([a-z]*)\s(?:consta)/gi

Example: consta, não consta

 

[!0-9A-Z\n]{16}/g

Example: Código de controle da certidão: NPFP260821142107

 

Already tested the regex at regex101: build, test, and debug regex and works fine.

 

My problem is putting the regex on the field regex of the function extract data form webparts the result is empty, without the regex the text is too long, im doing the regex to extrat just what i wanted, the status consta, não consta and alphanumeric code.

I have the same question (0)
  • Verified answer
    John_Mavridis Profile Picture
    Microsoft Employee on at

    Hello,

    the g modifier is not recognized in PAD, as multiple occurrences can be identified in another way.

     

    In your example, use the 'Extract data from web page' action leaving the Regex field empty, then use the 'Parse text' action onto the previously produced variable.

     

    For the first case, you can use this regular expression:

    ([a-z,ã]*)\s(?:consta)

    but you need to disable the toggle button "First occurrence only"

    - note that Ã£ is not part of the alphabet, so it needs to be added independently -

     

    For the second case, you can use:

    [!0-9A-Z\n]{16}

     

    Hope this works for you!

  • andlias Profile Picture
    5 on at

    Thanks its solved.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard