How can I get string between two strings?

I have a paragraph like this:

Country of origin
France
Languages
FrenchEnglish

I want to get text between “origin” and “Languages”. How can I do that?

Hi @AnnaDewitt

If your Above string is in: Result variable.
You can use:

Country= Result.Split({“origin”},StringSplitOptions.None)(1).Split({“Languages”},StringSplitOptions.None)(0)

This should give you all the text written between these two keywords.

Thank you. It worked.

Hello

Another option if you need it using Regex:

image

Cheers

Steve

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