Hello everyone,
I’m trying to export a certain string from an email subject:
Examples:
INPUT: “TEST1 BBE REQUEST”
OUTPUT: “BBE”
INPUT: “TEST2 BBE-BLU CHANGE REQUEST”
OUTPUT: “BBE-BLU”
The output can be ABC or ABC-ABC.
I tested a regex syntax in the online builder and it works: \b([A-Z]{3})\s|(\b([A-Z]{3}-[A-Z]{3})\b)
Whenever I use it in UiPath it doesn’t work:
System.Text.RegularExpressions.Regex.Match(Subject,“\b([A-Z]{3})\s|(\b([A-Z]{3}-[A-Z]{3})\b)”).ToString