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 / Regular expression to ...
Power Automate
Unanswered

Regular expression to replace periods

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I'm doing web scraping with PAD and I need to write a regular expression to replace commas for empty spaces in every price extracted.

 

I'm looking for some help here...

I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

    Use 'Replace Text' action.

    Text to parse = your price as variable

    Text to find = ,

    Replace with = %' '%

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    I've already done that but what I really need is to write a regex expression inside the web data extraction window...

     

    diogoamorim_0-1626260632867.png

     

  • Riyaz_riz11 Profile Picture
    4,048 Super User 2026 Season 1 on at

    Hi @Anonymous 

     

    Use Replace Text action and Text to parse = pass your price  variable

    Replace with = %' '%

    Text to find = ,

     

    If it works mark as solution and like it so it will helpful even others also.

     

    Regards

    Ahammad Riyaz

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi yasunm02,

     

    I've already done that and it works, but what I really need is to write a regex expression inside the web data extraction window:

     

    diogoamorim_1-1626336371461.png

     

    Can you help me?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry Diogo, i'm not familiar w/ regex expressions🙁...

    Boa sorte

  • tkuehara Profile Picture
    667 on at

    Hi @Anonymous 

     

    As far as I know about regex you use it like a "select query on a string", meaning you'll select/filter the relevant chars from a string. In other words, you can't modify/change contents (at least, I've never seen that kind of implementation PURELY using regex). What I've seen a lot of times is a conjunction of regex with Javascript for the replace part.

    That being said, what you could try to do is to retrieve all data as is and then transform the data table in a later stage in order to replace commas for a blank space between the thousand or decimal separator (don't know which system you are using) as already mentioned by others here. Please notice you'll lose your data table structure if you try to directly replace values because replace action expects a string and will return a string. If you need to maintain your data table structure, you have to:

    1. Use replace to generate a string (let's name it replaced) with the replaced value from data_table[row_index][column_index]
    2. Use set variable to update the data_table[row_index][column_index] with the replaced value

    Something similar to this:

    tkuehara_1-1626371508034.png

    Sample source and data table after replacing values:

    tkuehara_0-1626371471937.pngtkuehara_2-1626371585891.png

     

    Still, I don't see much use cases why you would want to do that because usually when we want to retrieve a value from a data table we do it by reading row by row (and by doing so most of the times you will create a variable, working with a copy of the data table data). The only reason I can see a need for a change in the actual data table values is when you want to update a csv file. I've done it by applying the technique mentioned above.

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard