Skip to content
Advertisement

Capture string in between

How can I capture data in between a series of strings?

I have the following data in a column: Basically, remove all before “INCIDENT TYPE:” and after “External ALARM ID:” “INCIDENT TYPE:” has no specific number of characters.

And I only want to display the incident type value

Advertisement

Answer

Assuming your messages have the fixed format of:

we can use the base string functions here:

Here is a working demo

Advertisement