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 / get particular text fr...
Power Automate
Answered

get particular text from a string

(0) ShareShare
ReportReport
Posted on by 43
hi , i want to get the code value from below text string , how can i do it ........Expected result should be Code : I83.892( any value)
 
Primary*

Code:

I83.892

Description:

VARICOSE VEINS LT LWR EXT WITH OTH COMPLICATIONS

Other Diagnosis Text:

Secondary

Code:

I87.2

Description:

VENOUS INSUFFICIENCY CHRONIC PERIPHERAL

Other Diagnosis Text:

Delete

Code:

M79.605

Description:

PAIN IN LEFT LEG

Other Diagnosis Text:

Delete

Code:

M79.662

Description:

PAIN IN LEFT LOWER LEG

Other Diagnosis Text:

Delete

Add Diagnosis
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,484 Super User 2026 Season 1 on at
    Use Parse Text with Regex enabled.
    Text to find regex: Code:\s*([A-Z]\d{2,3}\.\d+)


    That returned this from the text you gave:
     
  • kanha123_456 Profile Picture
    43 on at
    Hi , as this is the solution but this solution is not working if the code value is not in decimal .
    could u plz tell the solution if decimal value is not there then how can we get the code value
  • eetuRobo Profile Picture
    4,484 Super User 2026 Season 1 on at
    Good to hear that it worked

    :Try this regular expression to get also ones without decimal
    Code:\s*([A-Z]\d{2,6}(?:\.\d+)?)

    ChatGpt created it with this explanation


  • Suggested answer
    harish_sada Profile Picture
    53 on at
    you can use this Regex:  Code:\s*([A-Za-z0-9\.]+)   

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard