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 / Split Expression for Text
Power Automate
Unanswered

Split Expression for Text

(0) ShareShare
ReportReport
Posted on by

Hello,

I'm trying to set up a flow for extracting parsed text from automated system emails into Sharepoint. I'm struggling with writing the split expressions to extract the text I need. Most examples I've seen all have delimiters such as semicolons, commas, etc but I need to parse text that is surrounded mainly by other text. I have not been successful in writing a valid expression. An example of the email body is below:

 

The requisition for position Variable Hours Officer - number: 5410. has been approved.

I want to write expressions to extract the position type (Variable Hours Officer), reference number (5410 - I've figured out this one) and the status (approved). Can someone provide an example as to how my expressions should be written?

 

Thanks!

Categories:
  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    How to do this highly depends on the texts 😉

    If everything in your string is static except the three values, you can replace this with dividers (here “|”) and split the resulting text.

     

    Chriddle_0-1706549212818.png

     

     

    split(
    	replace(
    		replace(
    			replace(
    				replace(
    					outputs('Compose'),
    					'The requisition for position ',
    					''
    				),
    				' - number: ',
    				'|'
    			),
    			'. has been ',
    			'|'
    		),
    		'.',
    		''
    	),
    	'|'
    )

     

     

     

     

    This results in the following array:

    [
     "Variable Hours Officer",
     "5410",
     "approved"
    ]

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard