Hi team Help me Regex value

Hello Team,

My string value =“Book = Accrual ; Tree = bb-bs”

I need output as =“Book = Accrual”

can you anyone help me the regular expression here “; Tree” this only constant remaining changing dynamically.

Thankyou.

Hi @Mada_Sai_Krishna

(^.*?(?=; Tree))

Regards,

@Mada_Sai_Krishna

System.Text.RegularExpressions.Regex.Match(Input,"(^.*?(?=; Tree))").Value.Trim

Regards,

Thankyou for the Solution

1 Like

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