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 / 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,204 Super User 2025 Season 2 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,204 Super User 2025 Season 2 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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard