Help me to create regex, I want bold text, after amount (it can be start with dollar sign or not it can with dot zero zero) and before OFF

Tufts Medicare 74018 $115.00 Insurance Write Off74018 is not payable under provider contract.Please adjust [Guiher, Tiffani K] - 06/23/23 01:31 PM -adj approved. [Lutz, Annelise] - 07/10/23 08:23 AM -

Mass Health 71260-26 $371.00 Insurance Write Off71260 is not payable to provider type with Mass Health.Please adjust [Guiher, Tiffani K] - 06/26/23 05:08 AM -adj approved. [Lutz, Annelise] - 07/10/23 08:15 AM -
MEDICARE, 71046 128.00 REFERRING WRITE OFFTHIS CLAIM DENIED FOR NON-COVERED. ENCOUNTER 2399393 DENIED FOR REFERRING. BOTH ENCOUNTERS ORDER BY THE SAME REFERRING. PER PECOS 1568079044 ELIZABETH MCVEY NAGURSKI APRN-CNP IS NOT ENROLLED. SENDING BOTH EN

MEDICARE, 71046 128 REFERRING WRITE OFFTHIS CLAIM DENIE

Hi,

How about the following expression?

System.Text.RegularExpressions.Regex.Match(strData,"(?i)(?<=\d\s+)\D*?(?=\s+OFF)").Value

Regards,

Hi @Jorie_02

Try the below regular expression,

- Assign -> Output = String.Join(Environment.NewLine,System.Text.Regularexpressions.regex.matches(Input,"(?<=\$?\d+\.?\s)[A-Za-z\s]+(?=\sOff|\sOFF)"))

Check the below workflow for better understanding,

Hope it helps!!

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