Split by 2 different words

Hi

I want to split a text when there is “Auto” or “User”, but the below doesn’t work:

Split(outlier,{“Auto”,“User”})(0).trim

Hi,

Can you try the following?

System.Text.RegularExpressions.Regex.Split(outlier,"Auto|User")(0).Trim()

Regards,