How to find result out of a string

Using regular expression, its giving error only for that activity line- its not compatible. So I have used alternate solution.