Solved
Extract the value of PM and CM from the given text.
text - "CM: Nick Hunt ECE: Fred Wang General Contractor: Villamar PM: Rick Chan RF Designer: Eric Chan ",
output-
CM: Nick Hunt
PM: Rick Chan RF
text - "CM: Nick Hunt ECE: Fred Wang General Contractor: Villamar PM: Rick Chan RF Designer: Eric Chan ",
output-
CM: Nick Hunt
PM: Rick Chan RF
Stefan already asked you to provide the required details (order, pattern, etc.) for an error-free solution. However, you can try the following code:
a!localVariables(
local!text: "CM: Nick Hunt ECE: Fred Wang General Contractor: Villamar PM: Rick Chan RF Designer: Eric Chan ",
local!dText: substitute(
substitute(
substitute(
substitute(local!text, "ECE:", ";ECE:"),
"General Contractor:",
";General Contractor:"
),
"PM:",
";PM:"
),
"RF Designer:",
";RF Designer:"
),
local!data: split(local!dText, ";"),
local!data
)
Output:
List of Text String - 5 items
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.