Need to extract the data between the highlighted line

Click Create
Enter Special Text (below) in the Text Editor window:
You are here to het
123 Text Edition
NPS salesorder-598
Click the File Menu, Select Save and Exit

@Chaitan

inputstr.split({“Enter Special Text (below) in the Text Editor window:”,“Click the File Menu, Select Save and Exit”},stringsplitoptions.RemoveEmptyEntries)(0).Trim

try this once

Hi @Chaitan

(?<=\w+:\n+)[\s\S]+(?=\n\w+)

Hope this helps!!

I was getting an error

You are using Regex101 compiler for your checking you can use the regexr online compiler

Check the below website to use regexr

Hope you understand @Chaitan

Hi @Chaitan ,

Try setting the Flavor to .Net C# :
image

Also, An Alternate, if the Highlighted words are the keywords/Constants :

(?<=Editor window:)[\s\S]+?(?=Click the File Menu)

(?<=Editor window:)[\s\S]+?(?=Click the File Menu)

this worked thank you

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