How to use regex to get sentences from last

C81.90 (ICD-10-CM) - 201.90 (ICD-9-CM) - Hodgkin lymphoma
C81.90 (ICD-10-CM) - 201.90 (ICD-9-CM) - Hodgkin lymphoma
Q85.8 (ICD-10-CM) - 759.6 (ICD-9-CM) - Peutz-Jeghers syndrome

Hi ,from the sentennce want bold portion only using regex

@ashishmani - Please check this…

Note: In the “Matches” activity you have to choose multiple option

this is not multiline ,
this is diffrent senario ,
Q85.8 (ICD-10-CM) - 759.6 (ICD-9-CM) - Peutz-Jeghers syndrome

this is sentence i want only bold portion

@ashishmani - If its single line, still the same pattern works…Please check below…

can you plz paste the pattern only image is not clear

Pattern: (?<=-\s)\D+$

If it resolves your query. Please mark my post as solution.

I think its work but I m new in automation and regex so not able to use it with my srting,
can you please make a small xmal for it or u can also post full code, if possible

@ashishmani - XAML File: Regex_Amt.zip (34.2 KB)

thankyou its works

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.