Need regex for the below text

Work:HDHCK_OP_123_LOI-ADGC
adadada:apoiv
Cost:$65 ghh|1side
fsfsfsfsf:fsfsfsfsf
size:34X23
trim:45x45
Today Price:34|count34
i want the value between Work:HDHCK_OP_123_LOI-ADGC and TodayPrice:34|count34

Hi @T_Y_Raju

Use the below regex,

(?<=Work\:.*\s+)[\s\S]+(?=Today.*)

image

Check out the below workflow for better understanding,

- Assign -> Output = System.Text.RegularExpressions.Regex.Match(Input,"(?<=Work\:.*\s+)[\s\S]+(?=Today.*)").Value

hope it helps!!

Hi @T_Y_Raju ,

Maybe could check with the below Expression :

(?<=Work:)[\s\S]+?(?=Today Price)

@T_Y_Raju

Str_Output=System.Text.RegularExpressions.Regex.Match(InputString,"(?<=Work.*\s+)[\s\S]*?(?=Today)").Value

i dont want the first line i need the value from second line

Could you this regex : @T_Y_Raju
It will extract from second line as your requirement,

(?<=Work\:.*\s+)[\s\S]+(?=Today.*)

image

Hope it helps!!

(?=adadada)[\s\S]+(?=\nToday)