How to do this using regex

I have follwing text
"
sometext line1
Mytext:
Demo1

Sometext another line

Sometext another line2

"

Here Mytext: is fixed
I need to get this text only - Demo1

Thanks

image

https://forum.uipath.com/t/substring-after-line-containing-specific-text/18769

1 Like

Hi,
If you always need to extract the text demo1 you can just say the regex pattern as demo1 inside " ".

@ashley11 its not giving me result atall with this expression in studio
i think regex101 is not compatible with uipath studio

is it working for you in ur studio ? i dont think so

if its working then pls share workflow

Thanks

@Vikram212 Check this Workflow :
Regex.zip (1.4 KB)

1 Like