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 / Regex help! (Plumsail ...
Power Automate
Unanswered

Regex help! (Plumsail Regular Expression Match)

(0) ShareShare
ReportReport
Posted on by 65

Hi

I am attempting to perform a similar task in Power Automate as presented in this article 


My data source is a field in SharePoint online - containing the below data:

 

- **SharePoint sites:** _SharePoint RCM_;
- **SharePoint Site Permissions:** _Read, create and modify_;
- **Teams group:** _Teams - O_;
- **Teams group Permissions:** _Owner_;
- **File Server - shared folder:** _uml RCM_;
- **File Server Permissions:** _Read, create and modify_;
- **Group Email Accounts :** _Group email_;
- **Outlook Public Folders:** _OPF _;
- **Access to office areas (door card):** _IT Office _;
- **Comments:** _Comments_;


I used Regex101 to test the below statements.

 

Individually, each one matches the required line of data in the above string. However when I try to combine all of them into one complete statement (as demonstrated in the article) no matches are identified.

 

My assumption is that the '|' symbol at the end of each statement represents an OR condition for the next statement.  Saying that, I removed these symbols with the same problem.

 

Any help would be really appreciated.

 

Thanks


\*\*SharePoint sites:\*\* _(?<SharePointSites>.+|)

\*\*SharePoint Site Permissions:\*\* _(?<SharePointSitePermissions>.+|)

\*\*Teams group:\*\* _(?<TeamsGroup>.+|)

\*\*Teams group Permissions:\*\* _(?<TeamsGroupPermissions>.+|)

\*\*File Server - shared folder:\*\* _(?<FileShare>.+|)

\*\*File Server Permissions:\*\* _(?<FileSharePermissions>.+|)

\*\*Group Email Accounts :\*\* _(?<GroupEmail>.+|)

\*\*Outlook Public Folders:\*\* _(?<OutlookPublicFolders>.+|)

\*\*Access to office areas \(door card\):\*\* _(?<OfficeArea>.+|)

 

Categories:
I have the same question (0)
  • acox Profile Picture
    95 on at

    Hi @Warren_Gibbs,

     

    As far as I can see, your expression is missing two things: a capturing group ( ) for each statement and alternation operators between them (the "|" symbol):

     

    \*\*(SharePoint sites:)\*\* _(?<SharePointSites>.+|)|\*\*(SharePoint Site Permissions:)\*\* _(?<SharePointSitePermissions>.+|)|etc...

     

    This is what the complete expression should look like:

     

    \*\*(SharePoint sites:)\*\* _(?<SharePointSites>.+|)|\*\*(SharePoint Site Permissions:)\*\* _(?<SharePointSitePermissions>.+|)|\*\*(Teams group:)\*\* _(?<TeamsGroup>.+|)|\*\*(Teams group Permissions:)\*\* _(?<TeamsGroupPermissions>.+|)|\*\*(File Server - shared folder:)\*\* _(?<FileShare>.+|)|\*\*(File Server Permissions:)\*\* _(?<FileSharePermissions>.+|)|\*\*(Group Email Accounts :)\*\* _(?<GroupEmail>.+|)|\*\*(Outlook Public Folders:)\*\* _(?<OutlookPublicFolders>.+|)|\*\*(Access to office areas \(door card\):)\*\* _(?<OfficeArea>.+|)

     

     

    Hope this was useful!

  • Verified answer
    Warren_Gibbs Profile Picture
    65 on at

    @acox - Thank you very much!!

  • Verified answer
    acox Profile Picture
    95 on at

    You're very welcome, @Warren_Gibbs!

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard