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 iss...
Power Automate
Unanswered

Regular expression issue in Power Automate Desktop - Add backslash automatically

(1) ShareShare
ReportReport
Posted on by 50

The backslash is added automatically while we are using Regular express match to find the element since PA version 2.7
The backslash"\" was not added ago-on PA version 2.6. 

My flow is broken due to this symbol if I have used Regular expression match before.

Could you please help to restore it to the old version?

Captivebird_0-1675343288819.png

 

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

    Is this happening across your regex selectors or just this one?

  • Captivebird Profile Picture
    50 on at

    It is happening across all the regular selector including the new and old selectors.

    It is an issue since PA version 2.7 and the issue still exists on latest version 2.8

  • Pavel_NaNoi Profile Picture
    1,074 on at

    interesting bug, for now as a work-around, select "Text-editor" in the top right and put in the regex manually, shouldn't add any extra slashes there.

  • Captivebird Profile Picture
    50 on at

    Yes, it works. However, there are too many elements using Regular selector in my PAD and I hope Microsoft fix this issue ASAP.

    Thanks!

  • Randy_Colorado Profile Picture
    28 on at

    I've identified the same issue when trying to use the percent symbol (%) as part of the regex formula (e.g., (?<=Trans Cost Adj .*%\$$?)\d{1,2}\.\d{2,2}).  It appears fine when opening the datatable where being used as a reference formula however, when executing PAD and looking at the RegEx datatable with the program paused, everywhere a single backslash was used as an escape character there appears two backslashes, including two in front of the % symbol (e.g., (?<=Trans Cost Adj .*\\%\\$$?)\\d{1,2}\\.\\d{2,2}).  I tried to use %% and \% with no luck.

    Naturally, this causes the search pattern to be altered such that no results are returned.  This is the first time I have tried to use the % symbol in a RegEx search in PAD so not sure if it was a previous problem on an earlier version.  I am currently running version 2.45.393.24179.

  • Pavel_NaNoi Profile Picture
    1,074 on at

    Try %"%"%, that is also a % sign escape in PAD, might work.

  • Randy_Colorado Profile Picture
    28 on at

    That worked.  Thanks for your assistance.

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 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard