Assign-> Input ="Major Equipments Not Working: Next Activity:
Iron roughneck. Drill 81/2" production hole to section TD at 52,000'."
Assign-> Output = System.Text.RegularExpressions.Regex.Match(Input,"(?<=Next Activity\:\s*\n).*").Value.Trim()
You can directly use the Regular expressions in assign activity to get the required output without using Find Matching Patterns activity.
- Assign -> Input = "Major Equipment Not Working: Next Activity:
Iron RoughNeck: Drill 81/2" production hole to section TD at 52,000'."
- Assign -> Output = System.Text.RegularExpressions.Regex.Match(Input.toString, "(?<=Next Activity:\s).*").Value
→ \s: Matches any whitespace character, including spaces, tabs, and newline characters.
→ *: Quantifier that matches the preceding element (in this case, \s) zero or more times.
So, \s* will match any sequence of zero or more whitespace characters.